CameraClient

shakeScriptGlobal

SHAKE_SCRIPT_GLOBAL0xF4C8CF9E353AFECA

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

SignatureJavaScript
shakeScriptGlobal(p0: string, p1: number): void
SignatureLua
shakeScriptGlobal(p0: string, p1: number)

Usage

JavaScript
shakeScriptGlobal(p0, p1);
Lua
shakeScriptGlobal(p0, p1)

Parameters

ParameterTypeJavaScriptLua
p0stringstringstring
p1floatnumbernumber

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.

shakeScriptGlobal("HAND_SHAKE", 0.2);

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 SHAKE_SCRIPT_GLOBAL(const char* p0, float p1)
Hash
0xF4C8CF9E353AFECA

Open in the interactive natives reference