CS Docs
Discord
  • Welcome
  • Paid Scripts
    • CS MULTIJOB
      • Installation
      • Configuration
      • Exports
Powered by GitBook
On this page
  • Discord
  • How to set up a Discord bot token
  • Discord Guilds
  • Auto Job Management
  • How to set a maximum number of jobs for players
  1. Paid Scripts
  2. CS MULTIJOB

Configuration

Here you'll learn how to configure my script.

PreviousInstallationNextExports

Last updated 26 days ago

You'll find a comment next almost every line explaining what those lines do, please read them carefully.

Discord

In order to use the Discord features of our script, you will need to set up a bot token first.

How to set up a Discord bot token

  1. Set up a Discord bot via the developer portal on Discord ()

  2. Invite the Discord bot you created to your Discord.

  3. Get the Discord bot token from the newly created bot.

  4. Place the Discord bot token in Config.JobsLimits.Discord.bot_token = '{BOT_TOKEN}', in the shared/config.lua file.

Discord Guilds

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.

  1. First, open Discord, enable developer mode in Settings -> Advanced if you don't have it enabled already.

  2. Right-click on your server's profile picture and at the bottom of the options, click "Copy Server ID".

  3. Paste that server ID into Config.JobsLimits.Discord.guilds following the format explained there.

Auto Job Management

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.

How to

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.

How to set a maximum number of jobs for players

This is ideal if you have some players who have a business and need more job slots than other players.

Using Discord roles

  1. Go to your discord server.

  2. Right-click on your discord role and at the bottom of the options, click "Copy Role ID".

  3. Paste that role ID into Config.JobsLimits.Discord.maxJobs following the format explained there.

https://discord.com/developers/applications