setGameplayCamShakeAmplitude
SET_GAMEPLAY_CAM_SHAKE_AMPLITUDE0xA87E00932DB4D85DThe 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.
setGameplayCamShakeAmplitude(amplitude: number): voidsetGameplayCamShakeAmplitude(amplitude: number)Usage
JavaScript
setGameplayCamShakeAmplitude(amplitude);Lua
setGameplayCamShakeAmplitude(amplitude)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
amplitude | float | number | number |
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