RedM Natives

TASK_PLAY_UPPER_ANIM_FACING_ENTITY

Hash0xAD67214236AB1CFE
Runtime nameTaskPlayUpperAnimFacingEntity
NamespaceTASK
SideClient
NameOfficial
Docs
Since build1207

Signature

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);

Parameters

NameTypeDescription
pedPed—
animDictconst char*—
animNameconst char*—
entityEntity—
p4int—
p5float—
p6float—
p7int—
p8float—
p9BOOL—
p10BOOL—
p11float—
p12const char*—
p13int—
p14float—

Returns void

Usage

Lua
TaskPlayUpperAnimFacingEntity(ped, animDict, animName, entity, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14)

-- always works, by hash
Citizen.InvokeNative(0xAD67214236AB1CFE, ped, animDict, animName, entity, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14)
JavaScript and C#
JavaScript
TaskPlayUpperAnimFacingEntity(ped, animDict, animName, entity, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);

// by hash
Citizen.invokeNative('0xAD67214236AB1CFE', ped, animDict, animName, entity, p4, p5 + 0.0000001, p6 + 0.0000001, p7, p8 + 0.0000001, p9, p10, p11 + 0.0000001, p12, p13, p14 + 0.0000001);
C#
Function.Call((Hash)0xAD67214236AB1CFE, ped, animDict, animName, entity, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Sources

alloc8or RDR3 NativeDB

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