Skip to content

[Enhancement] - ESX Core - Improvement of the Service System #1706

@voidvalue-dev

Description

@voidvalue-dev

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 😭

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions