SetPlayerSkillPoints
setPlayerSkillPoints
Sets a player's authoritative available skill points value.
Syntax
bool setPlayerSkillPoints(int playerId, number value)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player to update. |
value |
number |
yes | The new available skill points value. |
Returns
Returns true when the value is accepted; otherwise returns false.
Examples
Set a player's available skill points:
setPlayerSkillPoints(playerId, 50)
Notes
- Available only in server-side resource scripts.
- This is a convenience wrapper around
setPlayerStat(playerId, "skill_points", value).