Configuration
Here you'll learn how to configure my script.
Last updated
Here you'll learn how to configure my script.
Last updated
You'll find a comment next almost every line explaining what those lines do, please read them carefully.
In order to use the Discord features of our script, you will need to set up a bot token first.
Set up a Discord bot via the developer portal on Discord ()
Invite the Discord bot you created to your Discord.
Get the Discord bot token from the newly created bot.
Place the Discord bot token in Config.JobsLimits.Discord.bot_token = '{BOT_TOKEN}',
in the shared/config.lua
file.
You will also need to add at least one (1) Discord Guild ID (SERVER ID) to allow the script to search this/these server(s) for the user's roles.
First, open Discord, enable developer mode in Settings -> Advanced if you don't have it enabled already.
Right-click on your server's profile picture and at the bottom of the options, click "Copy Server ID".
Paste that server ID into Config.JobsLimits.Discord.guilds
following the format explained there.
What is it?
This feature comes with our script and allows you to manage player jobs using Discord roles. You can choose between:
Assign jobs only if players have specific Discord roles
Remove jobs if players lose those roles
Or both
It's ideal for maintaining control over player jobs — for example, roles like Police, Ambulance, etc.
in the Config.JobsLimit.autoManagement
section in shared/config.lua
You'll find some options and a comment next each line explaining what it does.
This is ideal if you have some players who have a business and need more job slots than other players.
Go to your discord server.
Right-click on your discord role and at the bottom of the options, click "Copy Role ID".
Paste that role ID into Config.JobsLimits.Discord.maxJobs
following the format explained there.