shakeCinematicCam
SHAKE_CINEMATIC_CAM0xDCE214D9ED58F3CFThe 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.
shakeCinematicCam(shakeType: string, amount: number): voidshakeCinematicCam(shakeType: string, amount: number)Usage
JavaScript
shakeCinematicCam(shakeType, amount);Lua
shakeCinematicCam(shakeType, amount)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
shakeType | string | string | string |
amount | 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.
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