RedM Natives

SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE

Sets the amplitude for the gameplay (i.e.

Hash0x570E35F5C4A44838
Runtime nameSetGameplayCamShakeAmplitude
NamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xA87E00932DB4D85D

Signature

void SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE(float amplitude);

Parameters

NameTypeDescription
amplitudefloat—

Returns void

Description

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

Usage

Lua
SetGameplayCamShakeAmplitude(amplitude)

-- always works, by hash
Citizen.InvokeNative(0x570E35F5C4A44838, amplitude)
JavaScript and C#
JavaScript
SetGameplayCamShakeAmplitude(amplitude);

// by hash
Citizen.invokeNative('0x570E35F5C4A44838', amplitude + 0.0000001);
C#
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

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.