-
-
Notifications
You must be signed in to change notification settings - Fork 797
Closed
Labels
wontfixThis will not be worked onThis will not be worked on
Description
Adding a setDuty function could remove the ESX Service, as they are not fully integrated. You can go off duty in ESX Service, but the job metadata in ESX Core will still return true.
Guidance example:
---@param onDuty? boolean
---@return nil
function self.setDuty(onDuty)
if type(onDuty) ~= "boolean" then
onDuty = Config.DefaultJobDuty
end
self.job.onDuty = onDuty
self.metadata.jobDuty = onDuty
end
At the very least, it would be advisable to review the ESX Service, as it doesn’t work as well as an on-duty system should 😭
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on