CameraClient

shakeCinematicCam

SHAKE_CINEMATIC_CAM0xDCE214D9ED58F3CF

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

SignatureJavaScript
shakeCinematicCam(shakeType: string, amount: number): void
SignatureLua
shakeCinematicCam(shakeType: string, amount: number)

Usage

JavaScript
shakeCinematicCam(shakeType, amount);
Lua
shakeCinematicCam(shakeType, amount)

Parameters

ParameterTypeJavaScriptLua
shakeTypestringstringstring
amountfloatnumbernumber

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.

p0 argument found in the b617d scripts: "DRUNK_SHAKE"

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_CINEMATIC_CAM(const char* shakeType, float amount)
Hash
0xDCE214D9ED58F3CF

Open in the interactive natives reference