CameraClient

setCamAffectsAiming

SET_CAM_AFFECTS_AIMING0x8C1DC7770C51DC8D

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

SignatureJavaScript
setCamAffectsAiming(cam: Cam, toggle: boolean): void
SignatureLua
setCamAffectsAiming(cam: Cam, toggle: boolean)

Usage

JavaScript
setCamAffectsAiming(cam, toggle);
Lua
setCamAffectsAiming(cam, toggle)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
toggleBOOLbooleanboolean

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.

Allows you to aim and shoot at the direction the camera is facing.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_AFFECTS_AIMING(Cam cam, BOOL toggle)
Hash
0x8C1DC7770C51DC8D

Open in the interactive natives reference