Client API
Export index
Client API for REC_Core, with configuration and implementation details.
- Added
- Updated
These exports operate on the local player’s synchronized character. They do not take a playerId.
Wait for isLoaded() before reading fields that require a character.
Use the server API for authoritative balance changes and access decisions; client values represent the last synchronization.
Blocked value namespaces are not available through client getters.
| Export | Returns |
|---|---|
| isLoaded | boolean |
| getPlayerData | REC_Core.Shared.Character|nil |
| getCitizenId | string|nil |
| getCharinfo | REC_Core.Shared.Character.Charinfo|nil |
| getJob | REC_Core.Shared.Character.Group|nil |
| getGang | REC_Core.Shared.Character.Group|nil |
| getMoney | integer|nil |
| getMoneys | table<string, integer>|nil |
| getMetadata | any |
| getValue | any |
| getValues | table<string, any>|nil |
| hasJob | boolean |
| hasGang | boolean |
| logout | boolean |
