Get if a player is on duty

Returns if the player is on duty or not.

Event

exports["jobs_creator"]:isPlayerOnDuty(playerId)

Parameters

NameData TypeDescription

playerId

integer

Target player server ID

Return

NameData TypeDescription

isOnDuty

boolean

true if the player is on-duty false if the player is off-duty

Example

local playerId = 52

print("Player ID " .. playerId .. " is on duty: " .. tostring( exports["jobs_creator"]:isPlayerOnDuty(playerId) ))

Last updated