TASK_ANIMAL_INTERACTION
Hash
0xCD181A959CFDD7F4Runtime name
TaskAnimalInteractionNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
void TASK_ANIMAL_INTERACTION(Ped ped, Ped targetPed, Hash interactionType, Hash interactionModel, BOOL skipIdleAnimationClip);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
targetPed | Ped | — |
interactionType | Hash | — |
interactionModel | Hash | — |
skipIdleAnimationClip | BOOL | — |
Returns void
Description
https://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_ANIMAL_INTERACTION
Usage
TaskAnimalInteraction(ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip)
-- always works, by hash
Citizen.InvokeNative(0xCD181A959CFDD7F4, ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip)JavaScript and C#
TaskAnimalInteraction(ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);
// by hash
Citizen.invokeNative('0xCD181A959CFDD7F4', ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);Function.Call((Hash)0xCD181A959CFDD7F4, ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);- 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`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.