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#
- Open
resources/zolt_jobad/config.luain a code editor (VS Code is recommended). - Change the values you need. Keep the commas and brackets intact.
- 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 = 0Applying changes#
Restart just this script from the server console or txAdmin:
Server console· bash
restart zolt_jobadWarning
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.