SetPlayerSkill
Raises a skill of the player’s character to a level.
skill is one of the game’s skill names - marksmanship, fencing, weapon_sword, heavy_weapons, horse_riding,
stealth … (Stats and skills) - and level 1 .. 30. Kept on the record, re-applied at
every spawn, never lowered; an unknown name does nothing.
Syntax
Section titled “Syntax”SetPlayerSkill(pid, skill, level)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
skill |
string | the skill’s name |
level |
number | 1 .. 30 |
Returns
Section titled “Returns”boolean - false for an empty name, a level outside 1..30 or a player not connected
Example
Section titled “Example”SetPlayerSkill(pid, "weapon_sword", 15)See also
Section titled “See also”GetPlayerSkill · SetPlayerStat · the Vitals, stats and skills group of the index
