CameraClient

animatedShakeScriptGlobal

ANIMATED_SHAKE_SCRIPT_GLOBAL0xC2EAE3FB8CDBED31

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

SignatureJavaScript
animatedShakeScriptGlobal(
  p0: string,
  p1: string,
  p2: string,
  p3: number
): void
SignatureLua
animatedShakeScriptGlobal(p0: string, p1: string, p2: string, p3: number)

Usage

JavaScript
animatedShakeScriptGlobal(p0, p1, p2, p3);
Lua
animatedShakeScriptGlobal(p0, p1, p2, p3)

Parameters

ParameterTypeJavaScriptLua
p0stringstringstring
p1stringstringstring
p2stringstringstring
p3floatnumbernumber

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.

animatedShakeScriptGlobal("SHAKE_CAM_medium", "medium", "", 0.5f);

Full list of cam shake types by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/camShakeTypesCompact.json

Reference

Namespace
Camera CAM
In the game
void ANIMATED_SHAKE_SCRIPT_GLOBAL(const char* p0, const char* p1, const char* p2, float p3)
Hash
0xC2EAE3FB8CDBED31

Open in the interactive natives reference