Skip to content

Getting Started

Configuration

Change the settings to fit your server.


All settings live in the config file inside the script folder. Every option is commented so you know what it does.

Editing the config#

  1. Open resources/zolt_jobad/config.lua in a code editor (VS Code is recommended).
  2. Change the values you need. Keep the commas and brackets intact.
  3. Save the file and restart the script.
config.lua· lua
Config = {} -- 'auto' detects the framework for you. Or force one: 'qbcore', 'qbox', 'esx', 'standalone'Config.Framework = 'auto' -- Notifications: 'auto' (framework notify, ox_lib in standalone if started), 'ox_lib' or 'native'Config.Notify = 'auto' Config.ServerLogo = "logo.png" -- Standalone only (no framework): jobs come from aces.-- Give a player a job with:  add_ace identifier.license:xxxx zolt_jobad.job.police allow-- or for a group:            add_ace group.police zolt_jobad.job.police allow-- The first ace that matches is the player's job. Jobs listed here can be added in /jobadmin.Config.Standalone = {    AceJobs = {        { ace = 'zolt_jobad.job.police',    name = 'police',    label = 'LSPD' },        { ace = 'zolt_jobad.job.ambulance', name = 'ambulance', label = 'EMS' },        { ace = 'zolt_jobad.job.mechanic',  name = 'mechanic',  label = 'Mechanic' },    },    -- true = players without any job ace can still post as "Civilian"    -- (only if "civilian" is added in /jobadmin or "Allow every job" is on)    EveryoneCanUse = false,    CivilianLabel = 'Civilian',} Config.Cooldown = 600 -- seconds  -- How long the job ad stays on screen (seconds)Config.MinDuration = 5Config.MaxDuration = 10Config.DefaultDuration = 5 Config.DefaultColor = "#f6e33b" -- Jobs allowed to use /jobad (leave empty to allow every job)Config.AllowedJobs = {    'police',    'mechanic',    'ambulance',    'realestate',    'taxi',} -- Minimum grade per job (jobs not listed use DefaultMinimumGrade)Config.JobGrades = {    ['mechanic'] = 1,    ['taxi'] = 0,    ['realestate'] = 2,} Config.DefaultMinimumGrade = 0

Applying changes#

Restart just this script from the server console or txAdmin:

Server console· bash
restart zolt_jobad

Warning

If you see a Lua syntax error after editing, you've most likely removed a comma or a quote. Undo your last change and try again.

Your cart

Your cart is empty.

Browse scripts

Saved Items(0)

No saved items yet

Tap the heart on a product to keep it here.

Browse scripts
Configuration · Job Ad System | Zolt Scripts