GET_ANIM_SCENE_ENTITY_LOCATION_DATA
Writes the location data of the scene entity entityName into matrix for the given playback list, returning true on success.
Signature
BOOL GET_ANIM_SCENE_ENTITY_LOCATION_DATA(AnimScene animScene, const char* entityName, Vector3* matrix, BOOL p3, const char* playbackListName, int p5); // 0x8398438D8F14F56D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | animScene | AnimScene |
| 2 | entityName | const char* |
| 3 | matrix | Vector3* (out pointer) |
| 4 | p3 | BOOL |
| 5 | playbackListName | const char* |
| 6 | p5 | int |
Facts
| Name | GET_ANIM_SCENE_ENTITY_LOCATION_DATA |
|---|---|
| Hash | 0x8398438D8F14F56D |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result, matrix = Citizen.InvokeNative(0x8398438D8F14F56D, -- GET_ANIM_SCENE_ENTITY_LOCATION_DATA
0, -- AnimScene animScene
"text", -- const char* entityName
Citizen.PointerValueVector(), -- Vector3* matrix
false, -- BOOL p3
"text", -- const char* playbackListName
0, -- int p5
Citizen.ReturnResultAnyway()
)
if result then
-- ...
endconst [result, matrix] = Citizen.invokeNative("0x8398438D8F14F56D", // GET_ANIM_SCENE_ENTITY_LOCATION_DATA
0, // AnimScene animScene
"text", // const char* entityName
Citizen.pointerValueVector(), // Vector3* matrix
false, // BOOL p3
"text", // const char* playbackListName
0, // int p5
Citizen.returnResultAnyway()
);
if (result) {
// ...
}var matrixArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x8398438D8F14F56D, // GET_ANIM_SCENE_ENTITY_LOCATION_DATA
0, // AnimScene animScene
"text", // const char* entityName
matrixArg, // Vector3* matrix
false, // BOOL p3
"text", // const char* playbackListName
0 // int p5
);
Vector3 matrix = matrixArg.GetResult<Vector3>();Related ANIMSCENE natives
- GET_ANIM_SCENE_BOOL
- GET_ANIM_SCENE_CURRENT_ACTIVE_CAMERA_COUNT
- GET_ANIM_SCENE_FLOAT
- GET_ANIM_SCENE_INT
- GET_ANIM_SCENE_ORIGIN
- GET_ANIM_SCENE_PHASE
- ATTACH_ANIM_SCENE_TO_ENTITY_PRESERVING_LOCATION
- _DOES_ANIM_SCENE_OWNERSHIP_OF_ENTITY_EXIST
- _DOES_ENTITY_WITH_ID_EXIST_IN_ANIM_SCENE
- _GET_ANIM_SCENE_DICT
- _GET_ANIM_SCENE_DURATION
- _GET_ANIM_SCENE_OBJECT
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.