CameraClient

setGameplayCamShakeAmplitude

SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE0xA87E00932DB4D85D

The GTA V native SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE of the CAM namespace, as LS:MP client scripts call it: the global function setGameplayCamShakeAmplitude, in JavaScript and in Lua.

SignatureJavaScript
setGameplayCamShakeAmplitude(amplitude: number): void
SignatureLua
setGameplayCamShakeAmplitude(amplitude: number)

Usage

JavaScript
setGameplayCamShakeAmplitude(amplitude);
Lua
setGameplayCamShakeAmplitude(amplitude)

Parameters

ParameterTypeJavaScriptLua
amplitudefloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets the amplitude for the gameplay (i.e. 3rd or 1st) camera to shake. Used in script "drunk_controller.ysc.c4" to simulate making the player drunk.

Reference

Namespace
Camera CAM
In the game
void SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE(float amplitude)
Hash
0xA87E00932DB4D85D

Open in the interactive natives reference