HasPlayerBuff
Whether the server gave the player this buff and has not taken it back.
Syntax
Section titled “Syntax”HasPlayerBuff(pid, buff)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
buff |
string | number | the buff’s name, id or GUID |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if not HasPlayerBuff(pid, "well_rested") then GivePlayerBuff(pid, "well_rested", 60) endSee also
Section titled “See also”GivePlayerBuff · GetPlayerBuffs · the Buffs and the drink group of the index
