The Lab
TASK native

TASK_PLAY_UPPER_ANIM_FACING_ENTITY

returns void15 paramsbuild 1207

Plays the upper-body animation animName on ped while it faces entity.

Signature

C
void TASK_PLAY_UPPER_ANIM_FACING_ENTITY(Ped ped, const char* animDict, const char* animName, Entity entity, int p4, float p5, float p6, int p7, float p8, BOOL p9, BOOL p10, float p11, const char* p12, int p13, float p14); // 0xAD67214236AB1CFE b1207

Parameters

#NameType
1pedPed
2animDictconst char*
3animNameconst char*
4entityEntity
5p4int
6p5float
7p6float
8p7int
9p8float
10p9BOOL
11p10BOOL
12p11float
13p12const char*
14p13int
15p14float

Facts

Facts about TASK_PLAY_UPPER_ANIM_FACING_ENTITY
Name
TASK_PLAY_UPPER_ANIM_FACING_ENTITY
Hash
0xAD67214236AB1CFE
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(0xAD67214236AB1CFE, -- TASK_PLAY_UPPER_ANIM_FACING_ENTITY
  PlayerPedId(), -- Ped ped
  "text", -- const char* animDict
  "text", -- const char* animName
  PlayerPedId(), -- Entity entity
  0, -- int p4
  0.0, -- float p5
  0.0, -- float p6
  0, -- int p7
  0.0, -- float p8
  false, -- BOOL p9
  false, -- BOOL p10
  0.0, -- float p11
  "text", -- const char* p12
  0, -- int p13
  0.0 -- float p14
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xAD67214236AB1CFE", // TASK_PLAY_UPPER_ANIM_FACING_ENTITY
  PlayerPedId(), // Ped ped
  "text", // const char* animDict
  "text", // const char* animName
  PlayerPedId(), // Entity entity
  0, // int p4
  0.0, // float p5
  0.0, // float p6
  0, // int p7
  0.0, // float p8
  false, // BOOL p9
  false, // BOOL p10
  0.0, // float p11
  "text", // const char* p12
  0, // int p13
  0.0 // float p14
);
C#
Function.Call((Hash)0xAD67214236AB1CFE, // TASK_PLAY_UPPER_ANIM_FACING_ENTITY
  API.PlayerPedId(), // Ped ped
  "text", // const char* animDict
  "text", // const char* animName
  API.PlayerPedId(), // Entity entity
  0, // int p4
  0.0f, // float p5
  0.0f, // float p6
  0, // int p7
  0.0f, // float p8
  false, // BOOL p9
  false, // BOOL p10
  0.0f, // float p11
  "text", // const char* p12
  0, // int p13
  0.0f // float p14
);
All TASK natives

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