The Lab
ANIMSCENE native

SET_ANIM_SCENE_ORIGIN

returns void8 paramsbuild 1207

Places the origin of animScene at the given position and rotation, using the rotation order.

Signature

C
void SET_ANIM_SCENE_ORIGIN(AnimScene animScene, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, int order); // 0x020894BF17A02EF2 b1207

Parameters

#NameType
1animSceneAnimScene
2posXfloat
3posYfloat
4posZfloat
5rotXfloat
6rotYfloat
7rotZfloat
8orderint

Facts

Facts about SET_ANIM_SCENE_ORIGIN
Name
SET_ANIM_SCENE_ORIGIN
Hash
0x020894BF17A02EF2
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(0x020894BF17A02EF2, -- SET_ANIM_SCENE_ORIGIN
  0, -- AnimScene animScene
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  0 -- int order
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x020894BF17A02EF2", // SET_ANIM_SCENE_ORIGIN
  0, // AnimScene animScene
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  0 // int order
);
C#
Function.Call((Hash)0x020894BF17A02EF2, // SET_ANIM_SCENE_ORIGIN
  0, // AnimScene animScene
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  0 // int order
);
All ANIMSCENE natives

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