The Lab
CAMERA native

PLAY_CAM_ANIM

returns BOOL11 paramsbuild 1207

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

C
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 b1207

Parameters

#NameType
1camCam
2animNameconst char*
3animDictionaryconst char*
4xfloat
5yfloat
6zfloat
7xRotfloat
8yRotfloat
9zRotfloat
10animFlagsint
11rotOrderint

Facts

Facts about PLAY_CAM_ANIM
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.

Lua
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
JavaScript
// 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) {
  // ...
}
C#
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
);
All CAMERA natives

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