GetPlayerBuffs
The buffs the server gave the player, as GUIDs.
Syntax
Section titled “Syntax”GetPlayerBuffs(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”table - a list of buff GUIDs; {} when none
Example
Section titled “Example”for _, guid in ipairs(GetPlayerBuffs(pid)) do local info = GetBuffInfo(guid) Log(GetPlayerName(pid), "has", info and info.name or guid)endSee also
Section titled “See also”GivePlayerBuff · GetBuffInfo · ClearPlayerBuffs · the Buffs and the drink group of the index
