The Lab
PED native

GET_ANIM_INITIAL_OFFSET_POSITION

returns Vector310 paramsbuild 1207

Returns the starting world position of the animation animName from animDict when played at the given origin and rotation.

Signature

C
Vector3 GET_ANIM_INITIAL_OFFSET_POSITION(const char* animDict, const char* animName, float x, float y, float z, float xRot, float yRot, float zRot, float p8, int p9); // 0xBE22B26DD764C040 b1207

Parameters

#NameType
1animDictconst char*
2animNameconst char*
3xfloat
4yfloat
5zfloat
6xRotfloat
7yRotfloat
8zRotfloat
9p8float
10p9int

Facts

Facts about GET_ANIM_INITIAL_OFFSET_POSITION
Name
GET_ANIM_INITIAL_OFFSET_POSITION
Hash
0xBE22B26DD764C040
Namespace
Returns
Vector3
Game build
1207

Examples

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

Lua
local coords = Citizen.InvokeNative(0xBE22B26DD764C040, -- GET_ANIM_INITIAL_OFFSET_POSITION
  "text", -- const char* animDict
  "text", -- const char* animName
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float xRot
  0.0, -- float yRot
  0.0, -- float zRot
  0.0, -- float p8
  0, -- int p9
  Citizen.ResultAsVector()
)
print(coords.x, coords.y, coords.z)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const coords = Citizen.invokeNative("0xBE22B26DD764C040", // GET_ANIM_INITIAL_OFFSET_POSITION
  "text", // const char* animDict
  "text", // const char* animName
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float xRot
  0.0, // float yRot
  0.0, // float zRot
  0.0, // float p8
  0, // int p9
  Citizen.resultAsVector()
);
const [x, y, z] = coords
C#
Vector3 coords = Function.Call<Vector3>((Hash)0xBE22B26DD764C040, // GET_ANIM_INITIAL_OFFSET_POSITION
  "text", // const char* animDict
  "text", // const char* animName
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float xRot
  0.0f, // float yRot
  0.0f, // float zRot
  0.0f, // float p8
  0 // int p9
);
All PED natives

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