SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE
Sets the amplitude for the gameplay (i.e.
Hash
0x570E35F5C4A44838Runtime name
SetGameplayCamShakeAmplitudeNamespaceCAMERA
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xA87E00932DB4D85DSignature
void SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE(float amplitude);Parameters
| Name | Type | Description |
|---|---|---|
amplitude | float | — |
Returns void
Description
Sets the amplitude for the gameplay (i.e. 3rd or 1st) camera to shake.
Usage
SetGameplayCamShakeAmplitude(amplitude)
-- always works, by hash
Citizen.InvokeNative(0x570E35F5C4A44838, amplitude)JavaScript and C#
SetGameplayCamShakeAmplitude(amplitude);
// by hash
Citizen.invokeNative('0x570E35F5C4A44838', amplitude + 0.0000001);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. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.