PLAY_CAM_ANIM
Plays the camera animation animName from animDictionary on cam, positioned relative to the given origin. Returns true on success.
The animation dictionary must be loaded first.
Signature
BOOL PLAY_CAM_ANIM(Cam cam, const char* animName, const char* animDictionary, float x, float y, float z, float xRot, float yRot, float zRot, int animFlags, int rotOrder); // 0xA263DDF694D563F6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | cam | Cam |
| 2 | animName | const char* |
| 3 | animDictionary | const char* |
| 4 | x | float |
| 5 | y | float |
| 6 | z | float |
| 7 | xRot | float |
| 8 | yRot | float |
| 9 | zRot | float |
| 10 | animFlags | int |
| 11 | rotOrder | int |
Facts
| Name | PLAY_CAM_ANIM |
|---|---|
| Hash | 0xA263DDF694D563F6 |
| 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 = Citizen.InvokeNative(0xA263DDF694D563F6, -- PLAY_CAM_ANIM
0, -- Cam cam
"text", -- const char* animName
"text", -- const char* animDictionary
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, -- int animFlags
0 -- int rotOrder
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xA263DDF694D563F6", // PLAY_CAM_ANIM
0, // Cam cam
"text", // const char* animName
"text", // const char* animDictionary
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, // int animFlags
0, // int rotOrder
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xA263DDF694D563F6, // PLAY_CAM_ANIM
0, // Cam cam
"text", // const char* animName
"text", // const char* animDictionary
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, // int animFlags
0 // int rotOrder
);Related CAMERA natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.