RedM Natives

SET_ANIM_SCENE_ORIGIN

Hash0x020894BF17A02EF2
Runtime nameSetAnimSceneOrigin
NamespaceANIMSCENE
SideClient
NameOfficial
Docs
Since build1207

Signature

void SET_ANIM_SCENE_ORIGIN(AnimScene animScene, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, int order);

Parameters

NameTypeDescription
animSceneAnimScene—
posXfloat—
posYfloat—
posZfloat—
rotXfloat—
rotYfloat—
rotZfloat—
orderint—

Returns void

Usage

Lua
SetAnimSceneOrigin(animScene, posX, posY, posZ, rotX, rotY, rotZ, order)

-- always works, by hash
Citizen.InvokeNative(0x020894BF17A02EF2, animScene, posX, posY, posZ, rotX, rotY, rotZ, order)
JavaScript and C#
JavaScript
SetAnimSceneOrigin(animScene, posX, posY, posZ, rotX, rotY, rotZ, order);

// by hash
Citizen.invokeNative('0x020894BF17A02EF2', animScene, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, order);
C#
Function.Call((Hash)0x020894BF17A02EF2, animScene, posX, posY, posZ, rotX, rotY, rotZ, order);
  • 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.

See also

Sources

alloc8or RDR3 NativeDB

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