GivePlayerSkillPoints

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

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 addPlayerStat for skill_points.