SlashCo Wiki

SlashCo.IsActivePerk

 boolean SlashCo.IsActivePerk( Player ply, string perkID )

Description

Checks whether a player has a perk currently equipped.
Active perks are stored with a ! prefix.

Arguments

1Player ply

Player to check

2string perkID

ID of the perk to check

Returns

1boolean active

Whether the specified perk is active