_TASK_PLAY_EMOTE
Similar to 0xB31A277C1AC7B7FF but checks if the ped's inventory contains the specified emote kit.
Hash
0x884E3436CC1F41DDRuntime name
TaskPlayEmoteNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _TASK_PLAY_EMOTE(Ped ped, int emoteType, int playbackMode, Hash emote, BOOL isSecondaryTask, BOOL canBreakOut, BOOL disableEarlyOutAnimTag, BOOL ignoreInvalidMainTask, BOOL destroyProps);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
emoteType | int | — |
playbackMode | int | — |
emote | Hash | — |
isSecondaryTask | BOOL | — |
canBreakOut | BOOL | — |
disableEarlyOutAnimTag | BOOL | — |
ignoreInvalidMainTask | BOOL | — |
destroyProps | BOOL | — |
Returns void
Description
Similar to 0xB31A277C1AC7B7FF but checks if the ped's inventory contains the specified emote kit.
Usage
TaskPlayEmote(ped, emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps)
-- always works, by hash
Citizen.InvokeNative(0x884E3436CC1F41DD, ped, emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps)JavaScript and C#
TaskPlayEmote(ped, emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);
// by hash
Citizen.invokeNative('0x884E3436CC1F41DD', ped, emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);Function.Call((Hash)0x884E3436CC1F41DD, ped, emoteType, playbackMode, emote, isSecondaryTask, canBreakOut, disableEarlyOutAnimTag, ignoreInvalidMainTask, destroyProps);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.