animatedShakeCam
ANIMATED_SHAKE_CAM0xA2746EEAE3E577CDThe GTA V native ANIMATED_SHAKE_CAM of the CAM namespace, as LS:MP client scripts call it: the global function animatedShakeCam, in JavaScript and in Lua.
animatedShakeCam(
cam: Cam,
p1: string,
p2: string,
p3: string,
amplitude: number
): voidanimatedShakeCam(
cam: Cam,
p1: string,
p2: string,
p3: string,
amplitude: number
)Usage
JavaScript
animatedShakeCam(cam, p1, p2, p3, amplitude);Lua
animatedShakeCam(cam, p1, p2, p3, amplitude)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
cam | Cam | number | integer |
p1 | string | string | string |
p2 | string | string | string |
p3 | string | string | string |
amplitude | 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.
Example from michael2 script.
animatedShakeCam(l_5069, "shake_cam_all@", "light", "", 1f);Reference
- Namespace
- Camera CAM
- In the game
void ANIMATED_SHAKE_CAM(Cam cam, const char* p1, const char* p2, const char* p3, float amplitude)- Hash
0xA2746EEAE3E577CD