Last updated 2 years ago
Trigger to toggle the current duty status of the player
This will toggle the current duty status of the player (if he was off duty he will be on duty and vice versa)
This will set the duty status of the player to the new status
TriggerEvent("jobs_creator:toggleCurrentDutyStatus")
TriggerEvent("jobs_creator:toggleCurrentDutyStatus", newDutyStatus)
-- Toggles the current duty status RegisterCommand("duty", function() TriggerEvent("jobs_creator:toggleCurrentDutyStatus") end, false)
RegisterCommand("onduty", function() TriggerEvent("jobs_creator:toggleCurrentDutyStatus", true) end, false) RegisterCommand("offduty", function() TriggerEvent("jobs_creator:toggleCurrentDutyStatus", false) end, false)