CameraClient

getCamFarDof

GET_CAM_FAR_DOF0x255F8DAFD540D397

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger

Returns

float JavaScript number, Lua number

Reference

Namespace
Camera CAM
In the game
float GET_CAM_FAR_DOF(Cam cam)
Hash
0x255F8DAFD540D397

Open in the interactive natives reference