# CAMERA::CREATE_CAMERA_WITH_PARAMS

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

## Signature

```c
Cam CREATE_CAMERA_WITH_PARAMS(Hash camHash, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, float fov, BOOL p8, Any p9);
```

## Parameters

- `camHash` (`Hash`)
- `posX` (`float`)
- `posY` (`float`)
- `posZ` (`float`)
- `rotX` (`float`)
- `rotY` (`float`)
- `rotZ` (`float`)
- `fov` (`float`)
- `p8` (`BOOL`)
- `p9` (`Any`)

## Returns

`Cam`

## Usage

### Lua

```lua
local retval = CreateCameraWithParams(camHash, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9)

-- always available, by hash
local retval = Citizen.InvokeNative(0x98B99B9F27E2D60B, camHash, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = CreateCameraWithParams(camHash, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);

// by hash
const retval = Citizen.invokeNative('0x98B99B9F27E2D60B', camHash, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, rotX + 0.0000001, rotY + 0.0000001, rotZ + 0.0000001, fov + 0.0000001, p8, p9, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x98B99B9F27E2D60B, camHash, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- 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.*
