Skip to content

GetPlayerEmote

The emote a player is making now.

A looping one lasts until the player moves or it is stopped; one that plays once counts for a few seconds.

GetPlayerEmote(pid)
Parameter Type
pid number the player

string - the name, or nil when none plays

if GetPlayerEmote(pid) == "dance" then GivePlayerMoney(pid, 1) end -- a coin for the dancer

PlayPlayerEmote · OnPlayerEmote · the Emotes group of the index