SET_CAM_ROT
Sets the rotation of the cam.
Hash
0x63DFA6810AD78719Runtime name
SetCamRotNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x85973643155D0B07Signature
void SET_CAM_ROT(Cam cam, float rotX, float rotY, float rotZ, int rotationOrder);Parameters
| Name | Type | Description |
|---|---|---|
cam | Cam | — |
rotX | float | — |
rotY | float | — |
rotZ | float | — |
rotationOrder | int | — |
Returns void
Description
Sets the rotation of the cam.
Usage
SetCamRot(cam, rotX, rotY, rotZ, rotationOrder)
-- always works, by hash
Citizen.InvokeNative(0x63DFA6810AD78719, cam, rotX, rotY, rotZ, rotationOrder)JavaScript and C#
SetCamRot(cam, rotX, rotY, rotZ, rotationOrder);
// by hash
Citizen.invokeNative('0x63DFA6810AD78719', cam, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, rotationOrder);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Enums and flags
- eEulerRotationOrder 6 values
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.