CameraClient

setCamNearDof

SET_CAM_NEAR_DOF0x3FA4BF0A7AB7DE2C

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

SignatureJavaScript
setCamNearDof(cam: Cam, nearDOF: number): void
SignatureLua
setCamNearDof(cam: Cam, nearDOF: number)

Usage

JavaScript
setCamNearDof(cam, nearDOF);
Lua
setCamNearDof(cam, nearDOF)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
nearDOFfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_NEAR_DOF(Cam cam, float nearDOF)
Hash
0x3FA4BF0A7AB7DE2C

Open in the interactive natives reference