Skip to content

GetPlayerStat

The level of record of a core stat.

GetPlayerStat(pid, stat)
Parameter Type
pid number the player
stat string the stat’s name

number - the level the server set; 0 = never set (the character’s own level is not read back)

if GetPlayerStat(pid, "strength") < 13 then SetPlayerStat(pid, "strength", 13) end

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