Possible Mistakes
A created job does not work correctly when selecting it
Make sure that the jobID in bit-jobs/jobs/yourjob.lua matches the job number in bit-jobs/config.lua.
jobID in bit-jobs/jobs/yourjob.lua:
local jobID = 1
jobID in bit-jobs/config.lua:
Jobs = {
[1] = { -- jobID
-- ... job configuration
}
}
The number in square brackets [1] must match the local jobID = 1 variable in the individual job file.
Common Mistakes
-
Mismatched jobID numbers - The most common issue. Always verify that the jobID in both files match exactly.
-
Incorrect job order - When adding new jobs, make sure to follow the sequential order (1, 2, 3, etc.) without skipping numbers.
-
Missing job file - If you add a job to config.lua but forget to create the corresponding file in the jobs folder, it won't work.
-
Duplicate jobID - Never use the same jobID for two different jobs.
How to Fix
- Open
bit-jobs/config.luaand find your job in the Jobs table - Note the number in square brackets (e.g.,
[5]means jobID is 5) - Open
bit-jobs/jobs/yourjob.lua - Ensure
local jobID = 5matches the number from step 2 - Restart the resource