# CAMERA::GET_CAM_SPLINE_PHASE

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

## Signature

```c
float GET_CAM_SPLINE_PHASE(Cam cam);
```

## Parameters

- `cam` (`Cam`)

## Returns

`float`

## Description

Can use this with SET_CAM_SPLINE_PHASE to set the float it this native returns.

(returns 1.0f when no nodes has been added, reached end of non existing spline)

## Usage

### Lua

```lua
local retval = GetCamSplinePhase(cam)

-- always available, by hash
local retval = Citizen.InvokeNative(0x095EDCD24D90033A, cam, Citizen.ResultAsFloat())
```

### JavaScript

```js
const retval = GetCamSplinePhase(cam);

// by hash
const retval = Citizen.invokeNative('0x095EDCD24D90033A', cam, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
```

### C#

```csharp
float retval = Function.Call<float>((Hash)0x095EDCD24D90033A, cam);
```

## See also

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

*Sources: alloc8or RDR3 NativeDB.*
