SetPlayerSkillPoints: Difference between revisions
Jump to navigation
Jump to search
Automatyczna aktualizacja dokumentacji funkcji |
Complete Lua function catalog |
||
| Line 30: | Line 30: | ||
* This is a convenience wrapper around <code>setPlayerStat(playerId, "skill_points", value)</code>. | * This is a convenience wrapper around <code>setPlayerStat(playerId, "skill_points", value)</code>. | ||
[[Category:Lua Functions]] | |||
[[Category:Server Functions]] | [[Category:Server Functions]] | ||
[[Category:Progression Functions]] | [[Category:Progression Functions]] | ||
[[Category:Player Functions]] | [[Category:Player Functions]] | ||
Latest revision as of 09:55, 15 August 2026
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).