CreateCamWithParams — FiveM Natives
0xB51194800B257161 · CAM · all
Create a camera with the specified cam name/type, You can use SET_CAM_ natives to manipulate the camera. Take a look at CREATE_CAM if you would like to see the available camera names.
Parameters
| Name | Type | Description |
|---|---|---|
| camName | char* | A string representing the camera type, the game will convert the string into a joaat hash upon native execution. |
| posX | float | The x position of the camera (you can also send a vector3 instead of the bulk coordinates) |
| posY | float | The y position of the camera (you can also send a vector3 instead of the bulk coordinates) |
| posZ | float | The z position of the camera (you can also send a vector3 instead of the bulk coordinates) |
| rotX | float | The x rotation of the camera |
| rotY | float | The y rotation of the camera |
| rotZ | float | The z rotation of the camera |
| fov | float | The Field Of View of the camera, is the observable world that is seen |
| active | BOOL | Set to true if you wish to make this new camera the active camera. |
| rotationOrder | int | The order of rotation, see [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9) |
Returns
Cam