Jobs and gangs
Matching groups
Jobs and gangs for REC_Core, with configuration and implementation details.
- Added
- Updated
local allowed = exports.REC_Core:hasJob(playerId, { "police", "ambulance", }, { [2] = true, [3] = true, }, true)
local count = exports.REC_Core:countPlayersByJob("police", nil, true)
Names can be a string or a list. Grades can be a set such as { [2] = true, } or a list such as { 2, 3, }; nil or an empty table allows all grades.
onDutyOnly = true adds the duty check for jobs.
Counts include loaded characters only.
Offline group setters write to the database and reject loaded characters.
