Skip to content

GetPlayerBuffs

The buffs the server gave the player, as GUIDs.

GetPlayerBuffs(pid)
Parameter Type
pid number the player

table - a list of buff GUIDs; {} when none

for _, guid in ipairs(GetPlayerBuffs(pid)) do
local info = GetBuffInfo(guid)
Log(GetPlayerName(pid), "has", info and info.name or guid)
end

GivePlayerBuff · GetBuffInfo · ClearPlayerBuffs · the Buffs and the drink group of the index