PLAY_CAM_ANIM
Hash
0xA263DDF694D563F6Runtime name
PlayCamAnimNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x9A2D0FB2E7852392Signature
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
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
animName | const char* | — |
animDictionary | const char* | — |
x | float | — |
y | float | — |
z | float | — |
xRot | float | — |
yRot | float | — |
zRot | float | — |
animFlags | int | — |
rotOrder | int | — |
Returns BOOL
Usage
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#
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());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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEulerRotationOrder 6 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.