GivePlayerSkillPoints: 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>addPlayerStat</code> for <code>skill_points</code>. | * This is a convenience wrapper around <code>addPlayerStat</code> for <code>skill_points</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:53, 15 August 2026
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.