RedM Natives

TASK_ANIMAL_INTERACTION

Hash0xCD181A959CFDD7F4
Runtime nameTaskAnimalInteraction
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

void TASK_ANIMAL_INTERACTION(Ped ped, Ped targetPed, Hash interactionType, Hash interactionModel, BOOL skipIdleAnimationClip);

Parameters

NameTypeDescription
pedPed—
targetPedPed—
interactionTypeHash—
interactionModelHash—
skipIdleAnimationClipBOOL—

Returns void

Description

https://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_ANIMAL_INTERACTION

Usage

Lua
TaskAnimalInteraction(ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip)

-- always works, by hash
Citizen.InvokeNative(0xCD181A959CFDD7F4, ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip)
JavaScript and C#
JavaScript
TaskAnimalInteraction(ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);

// by hash
Citizen.invokeNative('0xCD181A959CFDD7F4', ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);
C#
Function.Call((Hash)0xCD181A959CFDD7F4, ped, targetPed, interactionType, interactionModel, skipIdleAnimationClip);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.