set_player_state
Sets a player's money (in integer cents), job, salary, or RP name in DarkRP. Requires confirmation for audited changes.
Instructions
GUARDED, DarkRP. Sets a player's money, job, salary or RP name. Money is in INTEGER CENTS (1.50$ is 150) and goes through the r-capitalism ledger when it is loaded, so the audited invariant stays intact. Fails with a named error when DarkRP is absent. Requires confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | Job command (e.g. 'police'), job name, or team index. | |
| rpname | No | ||
| salary | No | ||
| target | Yes | ||
| confirm | No | Must be true: this changes the running game and is audited. Otherwise the call is refused. | |
| money_cents | No | Absolute balance in integer cents. The ledger records the delta as an issue or a burn. |