CameraClient

animatedShakeCam

ANIMATED_SHAKE_CAM0xA2746EEAE3E577CD

The 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.

SignatureJavaScript
animatedShakeCam(
  cam: Cam,
  p1: string,
  p2: string,
  p3: string,
  amplitude: number
): void
SignatureLua
animatedShakeCam(
  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

ParameterTypeJavaScriptLua
camCamnumberinteger
p1stringstringstring
p2stringstringstring
p3stringstringstring
amplitudefloatnumbernumber

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

Open in the interactive natives reference