# CAMERA::SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE

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

## Signature

```c
void SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE(float amplitude);
```

## Parameters

- `amplitude` (`float`)

## Returns

`void`

## Description

Sets the amplitude for the gameplay (i.e. 3rd or 1st) camera to shake.

## Usage

### Lua

```lua
SetGameplayCamShakeAmplitude(amplitude)

-- always available, by hash
Citizen.InvokeNative(0x570E35F5C4A44838, amplitude)
```

### JavaScript

```js
SetGameplayCamShakeAmplitude(amplitude);

// by hash
Citizen.invokeNative('0x570E35F5C4A44838', amplitude + 0.0000001);
```

### C#

```csharp
Function.Call((Hash)0x570E35F5C4A44838, amplitude);
```

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

*Sources: alloc8or RDR3 NativeDB.*
