Server API
setDuty
Server API for REC_Core, with configuration and implementation details.
- Added
- Updated
Server side
Set the current job’s duty state. Passing its existing value succeeds without emitting another change.
| Argument | Type | Description |
|---|---|---|
playerId | integer | Connection ID; use a positive integer unless the export explicitly accepts the console. |
onDuty | boolean | New duty state. |
Returns boolean.
exports.REC_Core:setDuty(playerId, onDuty)
