GET_ANIM_INITIAL_OFFSET_POSITION
Returns the starting world position of the animation animName from animDict when played at the given origin and rotation.
Signature
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 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | animDict | const char* |
| 2 | animName | const char* |
| 3 | x | float |
| 4 | y | float |
| 5 | z | float |
| 6 | xRot | float |
| 7 | yRot | float |
| 8 | zRot | float |
| 9 | p8 | float |
| 10 | p9 | int |
Facts
| 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.
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)// 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] = coordsVector3 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
);Related PED natives
- GET_ANIM_INITIAL_OFFSET_ROTATION
- GET_PED_DEFENSIVE_AREA_POSITION
- GET_CARRIED_ATTACHED_INFO_FOR_SLOT
- GET_CLOSEST_PED
- GET_COMBAT_FLOAT
- GET_CURRENT_TARGET_FOR_PED
- GET_DEAD_PED_PICKUP_COORDS
- GET_GROUP_SIZE
- GET_IS_PED_RESPONDING_TO_NEGATIVE_INTERACTION
- GET_IS_PED_RESPONDING_TO_POSITIVE_INTERACTION
- GET_JACK_TARGET
- GET_LOOTING_PICKUP_TARGET_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.