Exports
GetDutyData
exports['piotreq_jobcore']:GetDutyData()exports['piotreq_jobcore']:GetPlayerDutyData(identifier)Example of Usage
local data = exports['piotreq_jobcore']:GetDutyData()
print(json.encode(data, {indent=true}))
--[[
{
"status": 1,
}
]]local data = exports['piotreq_jobcore']:GetPlayerDutyData('char1:12345678')
print(json.encode(data, {indent=true}))
--[[
{
"identifier": "char1:12345678",
"player": 10,
"job": "police",
"status": 1,
"time": 500,
}
]]DutyPlayersTrigger
Example of Usage
On Duty Update
ResetDutyTimer
Example of Usage
ResetDutyTimers
Example of Usage
ToggleDuty
FormatDutyTime
Example of Usage
SavePlayerDutyTime
Example of Usage
isPlayerOnDuty
Example of Usage
GetJobDutyPlayers
Example of Usage
GetAllDutyPlayers
Example of Usage
SetPlayerDutyData
Example of Usage
GetJobActivePlayers
Example of Usage
Last updated