RedM Natives

SET_CAM_ROT

Sets the rotation of the cam.

Hash0x63DFA6810AD78719
Runtime nameSetCamRot
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x85973643155D0B07

Signature

void SET_CAM_ROT(Cam cam, float rotX, float rotY, float rotZ, int rotationOrder);

Parameters

NameTypeDescription
camCam—
rotXfloat—
rotYfloat—
rotZfloat—
rotationOrderint—

Returns void

Description

Sets the rotation of the cam.

Usage

Lua
SetCamRot(cam, rotX, rotY, rotZ, rotationOrder)

-- always works, by hash
Citizen.InvokeNative(0x63DFA6810AD78719, cam, rotX, rotY, rotZ, rotationOrder)
JavaScript and C#
JavaScript
SetCamRot(cam, rotX, rotY, rotZ, rotationOrder);

// by hash
Citizen.invokeNative('0x63DFA6810AD78719', cam, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, rotationOrder);
C#
Function.Call((Hash)0x63DFA6810AD78719, cam, rotX, rotY, rotZ, rotationOrder);
  • 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

See also

Sources

alloc8or RDR3 NativeDB

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