RedM Natives

PLAY_CAM_ANIM

Hash0xA263DDF694D563F6
Runtime namePlayCamAnim
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9A2D0FB2E7852392

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);

Parameters

NameTypeDescription
camCam—
animNameconst char*—
animDictionaryconst char*—
xfloat—
yfloat—
zfloat—
xRotfloat—
yRotfloat—
zRotfloat—
animFlagsint—
rotOrderint—

Returns BOOL

Usage

Lua
local retval = PlayCamAnim(cam, animName, animDictionary, x, y, z, xRot, yRot, zRot, animFlags, rotOrder)

-- always works, by hash
local retval = Citizen.InvokeNative(0xA263DDF694D563F6, cam, animName, animDictionary, x, y, z, xRot, yRot, zRot, animFlags, rotOrder, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = PlayCamAnim(cam, animName, animDictionary, x, y, z, xRot, yRot, zRot, animFlags, rotOrder);

// by hash
const retval = Citizen.invokeNative('0xA263DDF694D563F6', cam, animName, animDictionary, x + 0.0000001, y + 0.0000001, z + 0.0000001, xRot + 0.0000001, yRot + 0.0000001, zRot + 0.0000001, animFlags, rotOrder, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0xA263DDF694D563F6, cam, animName, animDictionary, x, y, z, xRot, yRot, zRot, animFlags, rotOrder);
  • Float parameters: Lua integers (10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write 10.0 or value + 0.0. The generated JS wrappers add 0.0000001 to non-zero floats for the same reason.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.