Server API
setMetadata
Server API for REC_Core, with configuration and implementation details.
- Added
- Updated
Server side
Set a metadata value; nil removes the key.
| Argument | Type | Description |
|---|---|---|
playerId | integer | Connection ID; use a positive integer unless the export explicitly accepts the console. |
key | string | Profile or metadata key. |
value | any | JSON-serializable value; nil deletes the key. |
Returns boolean.
exports.REC_Core:setMetadata(playerId, key, value)
