FAQ
❓How do I disable a job?
You can also disable or enable the job entirely by setting an active
flag in the configuration. This is useful if you want to temporarily deactivate a job without removing its code.
For example: escrow/jobs/weed_job/config.lua
return {
-- # Other things...
-- Set to false to disable this job completely
active = false,
-- # Other things...
}
❓ How do I add a cooldown to a job?
Currently, there is no forced cooldown, so players can start the job again right after finishing. If you want to prevent this and enforce a cooldown, you can define it in the configuration.
For example: escrow/jobs/weed_job/config.lua
return {
-- # Other things...
-- Job cooldown time in seconds
cooldown = 60 * 5, -- 5 minutes
-- # Other things...
}
With this setting, after the player completes the job, they must wait 30 minutes before starting it again.
❓ I don't want jobs like weed, cocaine, or meth to be endless. How do players complete or finish these tasks?
The system operates as follows: there is no default limit set for the tasks you've mentioned. You can choose to set a limit if desired, such as ending a task after producing 5 or 10 items. Currently, the player has 30 minutes to continue production. Once the time expires, the task ends automatically, allowing the packaged products to be sold using the corner_deal
job. Alternatively, players can choose to work for just 5 minutes and then access the menu to conclude the job.
For example: escrow/jobs/weed_job/config.lua
return {
-- # Other things...
-- Step-by-step instructions for the mission
steps = {
{ label = locale('weed_job.steps.1') },
{ label = locale('weed_job.steps.2'), progress = { target = 10, } },
},
-- # Other things...
}
As you can see here, there is currently 10-package production limit.
Last updated