SET_CAM_ROT
Sets the rotation of cam in degrees, using rotationOrder.
Signature
void SET_CAM_ROT(Cam cam, float rotX, float rotY, float rotZ, int rotationOrder); // 0x63DFA6810AD78719 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | cam | Cam |
| 2 | rotX | float |
| 3 | rotY | float |
| 4 | rotZ | float |
| 5 | rotationOrder | int |
Facts
| Name | SET_CAM_ROT |
|---|---|
| Hash | 0x63DFA6810AD78719 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0x63DFA6810AD78719, -- SET_CAM_ROT
0, -- Cam cam
0.0, -- float rotX
0.0, -- float rotY
0.0, -- float rotZ
0 -- int rotationOrder
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0x63DFA6810AD78719", // SET_CAM_ROT
0, // Cam cam
0.0, // float rotX
0.0, // float rotY
0.0, // float rotZ
0 // int rotationOrder
);Function.Call((Hash)0x63DFA6810AD78719, // SET_CAM_ROT
0, // Cam cam
0.0f, // float rotX
0.0f, // float rotY
0.0f, // float rotZ
0 // int rotationOrder
);Related CAMERA natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.