# CAMERA::_SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE

- **Hash:** `0x066167C63111D8CF`
- **Namespace:** CAMERA
- **Runtime name (Lua/JS):** `SetGameplayCamParamsThisUpdate`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/CAMERA/_SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE

## Signature

```c
void _SET_GAMEPLAY_CAM_PARAMS_THIS_UPDATE(float speed, BOOL respectHorizontalOffset, float horizontalOffset, BOOL respectDistance, float distance);
```

## Parameters

- `speed` (`float`)
- `respectHorizontalOffset` (`BOOL`)
- `horizontalOffset` (`float`)
- `respectDistance` (`BOOL`)
- `distance` (`float`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

Sets the third person gameplay camera zoom level and blends in.
Must be called every frame to interpolate.
Offset and distance permanently affects subtle zoom in weapon wheel and possibly in menus too.

Params: p1 and p3 are usually true.

*Source: VORPCORE RDR3natives*

Not official name
This native allows to move the gameplay cam with the given speed, enableSlide will allow to move the cam to the slideOffset, enableZoom will allow to move the cam to the zoomOffset. 

EXAMPLE:
Citizen.InvokeNative(0x066167c63111d8cf,1.0, true, -1.0, true, 2.0)

*Source: femga rdr3_discoveries*

```
0x066167c63111d8cf  (by aaron1a12)
Sets the third person gameplay camera zoom level and blends in.
Must be called every frame to interpolate.
Important: offset and distance permanently affects subtle zoom in weapon wheel and possibly in menus too.

N_0x066167c63111d8cf(fAlpha, iUnk0, fOffset, iUnk1, fDistance)
N_0x066167c63111d8cf(1.0, 1, 0.0, 1, 0.75)
```

## Usage

### Lua

```lua
SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance)

-- always available, by hash
Citizen.InvokeNative(0x066167C63111D8CF, speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance)
```

### JavaScript

```js
SetGameplayCamParamsThisUpdate(speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance);

// by hash
Citizen.invokeNative('0x066167C63111D8CF', speed + 0.0000001, respectHorizontalOffset, horizontalOffset + 0.0000001, respectDistance, distance + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x066167C63111D8CF, speed, respectHorizontalOffset, horizontalOffset, respectDistance, distance);
```

- 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.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives, femga rdr3_discoveries.*
