Skip to content

HasPlayerBuff

Whether the server gave the player this buff and has not taken it back.

HasPlayerBuff(pid, buff)
Parameter Type
pid number the player
buff string | number the buff’s name, id or GUID

boolean

if not HasPlayerBuff(pid, "well_rested") then GivePlayerBuff(pid, "well_rested", 60) end

GivePlayerBuff · GetPlayerBuffs · the Buffs and the drink group of the index