# CAMERA::SET_CAM_COORD

- **Hash:** `0xF9EE7D419EE49DE6`
- **Namespace:** CAMERA
- **Runtime name (Lua/JS):** `SetCamCoord`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/CAMERA/SET_CAM_COORD

## Signature

```c
void SET_CAM_COORD(Cam cam, float posX, float posY, float posZ);
```

## Parameters

- `cam` (`Cam`)
- `posX` (`float`)
- `posY` (`float`)
- `posZ` (`float`)

## Returns

`void`

## Description

Sets the position of the cam.

## Usage

### Lua

```lua
SetCamCoord(cam, posX, posY, posZ)

-- always available, by hash
Citizen.InvokeNative(0xF9EE7D419EE49DE6, cam, posX, posY, posZ)
```

### JavaScript

```js
SetCamCoord(cam, posX, posY, posZ);

// by hash
Citizen.invokeNative('0xF9EE7D419EE49DE6', cam, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0xF9EE7D419EE49DE6, cam, posX, posY, posZ);
```

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

## See also

- [CAMERA::GET_CAM_COORD](https://natives.borderlinerp.com/natives/CAMERA/GET_CAM_COORD.md)

*Sources: alloc8or RDR3 NativeDB.*
