Skip to content

Duty status toggled

Triggered after player goes on/off duty client side

Event

AddEventHandler("jobs_creator:toggleDuty", function(isOnDuty)

end)

Parameters

Name Data Type Description
isOnDuty boolean Player new duty status

Example

AddEventHandler("jobs_creator:toggleDuty", function(isOnDuty)
    if(isOnDuty) then
        ESX.ShowNotification("You are now on duty")
    else
        ESX.ShowNotification("You are now off duty")
    end
end)