# CAMERA::SET_CAM_PARAMS

- **Hash:** `0xA47BBFFFB83D4D0A`
- **Namespace:** CAMERA
- **Runtime name (Lua/JS):** `SetCamParams`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/CAMERA/SET_CAM_PARAMS

## Signature

```c
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);
```

## Parameters

- `cam` (`Cam`)
- `posX` (`float`)
- `posY` (`float`)
- `posZ` (`float`)
- `rotX` (`float`)
- `rotY` (`float`)
- `rotZ` (`float`)
- `fieldOfView` (`float`)
- `p8` (`Any`)
- `graphType1` (`int`)
- `graphType2` (`int`)
- `rotationOrder` (`int`)
- `p12` (`Any`)
- `p13` (`Any`)

## Returns

`void`

## Usage

### Lua

```lua
SetCamParams(cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13)

-- always available, by hash
Citizen.InvokeNative(0xA47BBFFFB83D4D0A, cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13)
```

### JavaScript

```js
SetCamParams(cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13);

// by hash
Citizen.invokeNative('0xA47BBFFFB83D4D0A', cam, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, fieldOfView + 0.0000001, p8, graphType1, graphType2, rotationOrder, p12, p13);
```

### C#

```csharp
Function.Call((Hash)0xA47BBFFFB83D4D0A, cam, posX, posY, posZ, rotX, rotY, rotZ, fieldOfView, p8, graphType1, graphType2, rotationOrder, p12, p13);
```

- 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.

## Related enums

- [eEulerRotationOrder](https://natives.borderlinerp.com/enums/eEulerRotationOrder.md) — 6 values

*Sources: alloc8or RDR3 NativeDB.*
