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.
Syntax
Section titled “Syntax”GetPlayerEmote(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”string - the name, or nil when none plays
Example
Section titled “Example”if GetPlayerEmote(pid) == "dance" then GivePlayerMoney(pid, 1) end -- a coin for the dancerSee also
Section titled “See also”PlayPlayerEmote · OnPlayerEmote · the Emotes group of the index
