CreatorsServer exports
SetDuty
Last updated on
Puts a connected player on or off duty.
local res = exports.opx_infinity:SetDuty(source, onDuty)Scope write · sync — memory only, it answers at once.
Parameters
- source:
number - onDuty:
boolean
Returns
boolean— the new duty
Errors
job.noDuty(a job that is always on duty),error.notLoggedIn,export.badArgument
local res = exports.opx_infinity:SetDuty(source, true)