GivePlayerSkillPoints
givePlayerSkillPoints
Adds an amount to a player's authoritative skill points.
Syntax
bool givePlayerSkillPoints(int playerId, number amount)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player to update. |
amount |
number |
yes | The amount of skill points to add. |
Returns
Returns true when the updated value is accepted; otherwise returns false.
Examples
Award skill points to a player:
givePlayerSkillPoints(playerId, 100)
Notes
- Available only in server-side resource scripts.
- This is a convenience wrapper around
addPlayerStatforskill_points.