getAreCameraControlsDisabled
GET_ARE_CAMERA_CONTROLS_DISABLED0x7C814D2FB49F40C0The GTA V native GET_ARE_CAMERA_CONTROLS_DISABLED of the PLAYER namespace, as LS:MP client scripts call it: the global function getAreCameraControlsDisabled, in JavaScript and in Lua.
getAreCameraControlsDisabled(): booleangetAreCameraControlsDisabled(): booleanUsage
JavaScript
const result = getAreCameraControlsDisabled();Lua
local result = getAreCameraControlsDisabled()Parameters
None.
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns true when the player is not able to control the cam i.e. when running a benchmark test, switching the player or viewing a cutscene.
Note: I am not 100% sure if the native actually checks if the cam control is disabled but it seems promising.
Reference
- Namespace
- Player PLAYER
- In the game
BOOL GET_ARE_CAMERA_CONTROLS_DISABLED()- Hash
0x7C814D2FB49F40C0- Formerly
_IS_PLAYER_CAM_CONTROL_DISABLED