RE:CORD
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.

ArgumentTypeDescription
playerIdintegerConnection ID; use a positive integer unless the export explicitly accepts the console.
onDutybooleanNew duty state.

Returns boolean.

exports.REC_Core:setDuty(playerId, onDuty)
©2026 RE:CORD Development Group. All rights reserved.