Server API
setValue
Server API for REC_Core, with configuration and implementation details.
- Added
- Updated
Server side
Set one value; nil deletes it. The online canSetValue handler can reject the operation.
| Argument | Type | Description |
|---|---|---|
playerId | integer | Connection ID; use a positive integer unless the export explicitly accepts the console. |
namespace | string | Value-store namespace. |
dataKey | string | Key inside the namespace. |
value | any | JSON-serializable value; nil deletes the key. |
Returns boolean.
exports.REC_Core:setValue(playerId, namespace, dataKey, value)
