The Lab
ANIMSCENE native

GET_ANIM_SCENE_ORIGIN

returns void4 paramsbuild 1207

Writes the origin position and rotation of animScene using the rotation order.

Signature

C
void GET_ANIM_SCENE_ORIGIN(AnimScene animScene, Vector3* position, Vector3* rotation, int order); // 0xADF1D53F3B1FE0A7 b1207

Parameters

#NameType
1animSceneAnimScene
2positionVector3* (out pointer)
3rotationVector3* (out pointer)
4orderint

Facts

Facts about GET_ANIM_SCENE_ORIGIN
Name
GET_ANIM_SCENE_ORIGIN
Hash
0xADF1D53F3B1FE0A7
Namespace
Returns
void
Game build
1207

Examples

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

Lua
local position, rotation = Citizen.InvokeNative(0xADF1D53F3B1FE0A7, -- GET_ANIM_SCENE_ORIGIN
  0, -- AnimScene animScene
  Citizen.PointerValueVector(), -- Vector3* position
  Citizen.PointerValueVector(), -- Vector3* rotation
  0 -- int order
)
print(position, rotation)
JavaScript
const [position, rotation] = Citizen.invokeNative("0xADF1D53F3B1FE0A7", // GET_ANIM_SCENE_ORIGIN
  0, // AnimScene animScene
  Citizen.pointerValueVector(), // Vector3* position
  Citizen.pointerValueVector(), // Vector3* rotation
  0 // int order
);
console.log(position, rotation)
C#
var positionArg = new OutputArgument();
var rotationArg = new OutputArgument();
Function.Call((Hash)0xADF1D53F3B1FE0A7, // GET_ANIM_SCENE_ORIGIN
  0, // AnimScene animScene
  positionArg, // Vector3* position
  rotationArg, // Vector3* rotation
  0 // int order
);
Vector3 position = positionArg.GetResult<Vector3>();
Vector3 rotation = rotationArg.GetResult<Vector3>();
All ANIMSCENE natives

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