# CAMERA::SET_CAM_SPLINE_PHASE

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

## Signature

```c
void SET_CAM_SPLINE_PHASE(Cam cam, float p1);
```

## Parameters

- `cam` (`Cam`)
- `p1` (`float`)

## Returns

`void`

## Usage

### Lua

```lua
SetCamSplinePhase(cam, p1)

-- always available, by hash
Citizen.InvokeNative(0xF1898A68E7C15636, cam, p1)
```

### JavaScript

```js
SetCamSplinePhase(cam, p1);

// by hash
Citizen.invokeNative('0xF1898A68E7C15636', cam, p1 + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0xF1898A68E7C15636, cam, p1);
```

- 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_SPLINE_PHASE](https://natives.borderlinerp.com/natives/CAMERA/GET_CAM_SPLINE_PHASE.md) — Can use this with SET_CAM_SPLINE_PHASE to set the float it this native returns.

*Sources: alloc8or RDR3 NativeDB.*
