shakeGameplayCam
SHAKE_GAMEPLAY_CAM0xFD55E49555E017CFThe GTA V native SHAKE_GAMEPLAY_CAM of the CAM namespace, as LS:MP client scripts call it: the global function shakeGameplayCam, in JavaScript and in Lua.
shakeGameplayCam(shakeName: string, intensity: number): voidshakeGameplayCam(shakeName: string, intensity: number)Usage
JavaScript
shakeGameplayCam(shakeName, intensity);Lua
shakeGameplayCam(shakeName, intensity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
shakeName | string | string | string |
intensity | 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.
Possible shake types (updated b617d):
DEATH_FAIL_IN_EFFECT_SHAKE
DRUNK_SHAKE
FAMILY5_DRUG_TRIP_SHAKE
HAND_SHAKE
JOLT_SHAKE
LARGE_EXPLOSION_SHAKE
MEDIUM_EXPLOSION_SHAKE
SMALL_EXPLOSION_SHAKE
ROAD_VIBRATION_SHAKE
SKY_DIVING_SHAKE
VIBRATE_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_GAMEPLAY_CAM(const char* shakeName, float intensity)- Hash
0xFD55E49555E017CF