The Lab
TASK native

TASK_ANIMAL_INTERACTION

returns void5 paramsbuild 1207

Tasks ped to perform the animal interaction interactionType with targetPed, such as feeding or brushing a horse.

Signature

C
void TASK_ANIMAL_INTERACTION(Ped ped, Ped targetPed, Hash interactionType, Hash interactionModel, BOOL skipIdleAnimationClip); // 0xCD181A959CFDD7F4 b1207

Parameters

#NameType
1pedPed
2targetPedPed
3interactionTypeHash
4interactionModelHash
5skipIdleAnimationClipBOOL

Facts

Facts about TASK_ANIMAL_INTERACTION
Name
TASK_ANIMAL_INTERACTION
Hash
0xCD181A959CFDD7F4
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0xCD181A959CFDD7F4, -- TASK_ANIMAL_INTERACTION
  PlayerPedId(), -- Ped ped
  PlayerPedId(), -- Ped targetPed
  GetHashKey("name"), -- Hash interactionType
  GetHashKey("a_c_horse_arabian_white"), -- Hash interactionModel
  false -- BOOL skipIdleAnimationClip
)
JavaScript
Citizen.invokeNative("0xCD181A959CFDD7F4", // TASK_ANIMAL_INTERACTION
  PlayerPedId(), // Ped ped
  PlayerPedId(), // Ped targetPed
  GetHashKey("name"), // Hash interactionType
  GetHashKey("a_c_horse_arabian_white"), // Hash interactionModel
  false // BOOL skipIdleAnimationClip
);
C#
Function.Call((Hash)0xCD181A959CFDD7F4, // TASK_ANIMAL_INTERACTION
  API.PlayerPedId(), // Ped ped
  API.PlayerPedId(), // Ped targetPed
  (uint)API.GetHashKey("name"), // Hash interactionType
  (uint)API.GetHashKey("a_c_horse_arabian_white"), // Hash interactionModel
  false // BOOL skipIdleAnimationClip
);
All TASK natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.