CameraClient

getCamViewModeForContext

GET_CAM_VIEW_MODE_FOR_CONTEXT0xEE778F8C7E1142E2

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

SignatureJavaScript
getCamViewModeForContext(context: number): number
SignatureLua
getCamViewModeForContext(context: integer): integer

Usage

JavaScript
const result = getCamViewModeForContext(context);
Lua
local result = getCamViewModeForContext(context)

Parameters

ParameterTypeJavaScriptLuaDescription
contextintnumberintegersee getCamActiveViewModeContext

Returns

int JavaScript number, Lua integer

Reference

Namespace
Camera CAM
In the game
int GET_CAM_VIEW_MODE_FOR_CONTEXT(int context)
Hash
0xEE778F8C7E1142E2

Open in the interactive natives reference