SET_CAM_PARAMS
Sets the position, rotation and field of view of cam in one call, with optional interpolation graph types.
Signature
void SET_CAM_PARAMS(Cam cam, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float fieldOfView, Any p8, int graphType1, int graphType2, int rotationOrder, Any p12, Any p13); // 0xA47BBFFFB83D4D0A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | cam | Cam |
| 2 | posX | float |
| 3 | posY | float |
| 4 | posZ | float |
| 5 | rotX | float |
| 6 | rotY | float |
| 7 | rotZ | float |
| 8 | fieldOfView | float |
| 9 | p8 | Any |
| 10 | graphType1 | int |
| 11 | graphType2 | int |
| 12 | rotationOrder | int |
| 13 | p12 | Any |
| 14 | p13 | Any |
Facts
| Name | SET_CAM_PARAMS |
|---|---|
| Hash | 0xA47BBFFFB83D4D0A |
| 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(0xA47BBFFFB83D4D0A, -- SET_CAM_PARAMS
0, -- Cam cam
0.0, -- float posX
0.0, -- float posY
0.0, -- float posZ
0.0, -- float rotX
0.0, -- float rotY
0.0, -- float rotZ
0.0, -- float fieldOfView
0, -- Any p8
0, -- int graphType1
0, -- int graphType2
0, -- int rotationOrder
0, -- Any p12
0 -- Any p13
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xA47BBFFFB83D4D0A", // SET_CAM_PARAMS
0, // Cam cam
0.0, // float posX
0.0, // float posY
0.0, // float posZ
0.0, // float rotX
0.0, // float rotY
0.0, // float rotZ
0.0, // float fieldOfView
0, // Any p8
0, // int graphType1
0, // int graphType2
0, // int rotationOrder
0, // Any p12
0 // Any p13
);Function.Call((Hash)0xA47BBFFFB83D4D0A, // SET_CAM_PARAMS
0, // Cam cam
0.0f, // float posX
0.0f, // float posY
0.0f, // float posZ
0.0f, // float rotX
0.0f, // float rotY
0.0f, // float rotZ
0.0f, // float fieldOfView
0, // Any p8
0, // int graphType1
0, // int graphType2
0, // int rotationOrder
0, // Any p12
0 // Any p13
);Related CAMERA natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.