CameraClient

setCamUseShallowDofMode

SET_CAM_USE_SHALLOW_DOF_MODE0x16A96863A17552BB

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

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

Open in the interactive natives reference