RemovePlayerPerk
Takes a perk from the player’s character.
perk as for AddPlayerPerk. Taking a perk the character does not hold is fine.
Syntax
Section titled “Syntax”RemovePlayerPerk(pid, perk)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
perk |
string | a perk GUID, or its name or English name |
Returns
Section titled “Returns”boolean - false for a name the server cannot resolve (a GUID always passes), or a player not connected
Example
Section titled “Example”-- a curse takes the stride awayRemovePlayerPerk(pid, "Marathon Runner")See also
Section titled “See also”AddPlayerPerk · HasPlayerPerk · GetPlayerPerks · the Stats, skills, XP and perks group of the index
