Skip to content

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.

SetPlayerSkill(pid, skill, level)
Parameter Type
pid number the player
skill string the skill’s name
level number 1 .. 30

boolean - false for an empty name, a level outside 1..30 or a player not connected

SetPlayerSkill(pid, "weapon_sword", 15)

GetPlayerSkill · SetPlayerStat · the Vitals, stats and skills group of the index