Skip to content

GetPlayerPerks

The perks the player’s character holds.

A list of perk GUIDs (lower case, with dashes), as the player’s game last reported them and the mode last changed them; empty until the game has reported. GetPerkName turns one into its English name, and the perks list has them all.

GetPlayerPerks(pid)
Parameter Type
pid number the player

table - a list of perk GUIDs; {} for none, or for a player not connected

for _, perk in ipairs(GetPlayerPerks(pid)) do
Log(GetPlayerName(pid), "has the perk", GetPerkName(perk) or perk)
end

HasPlayerPerk · AddPlayerPerk · RemovePlayerPerk · GetPerkName · the Stats, skills, XP and perks group of the index