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.
Syntax
Section titled “Syntax”GetPlayerPerks(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”table - a list of perk GUIDs; {} for none, or for a player not connected
Example
Section titled “Example”for _, perk in ipairs(GetPlayerPerks(pid)) do Log(GetPlayerName(pid), "has the perk", GetPerkName(perk) or perk)endSee also
Section titled “See also”HasPlayerPerk · AddPlayerPerk · RemovePlayerPerk · GetPerkName · the Stats, skills, XP and perks group of the index
