CameraClient

getCamNearDof

GET_CAM_NEAR_DOF0xC2612D223D915A1C

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

SignatureJavaScript
getCamNearDof(cam: Cam): number
SignatureLua
getCamNearDof(cam: Cam): number

Usage

JavaScript
const value = getCamNearDof(cam);
Lua
local value = getCamNearDof(cam)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Camera CAM
In the game
float GET_CAM_NEAR_DOF(Cam cam)
Hash
0xC2612D223D915A1C
Introduced
Game build 2699 legacy numbering
Formerly
_GET_CAM_NEAR_DOF

Open in the interactive natives reference