CameraClient

setCamFarDof

SET_CAM_FAR_DOF0xEDD91296CD01AEE0

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

SignatureJavaScript
setCamFarDof(cam: Cam, farDOF: number): void
SignatureLua
setCamFarDof(cam: Cam, farDOF: number)

Usage

JavaScript
setCamFarDof(cam, farDOF);
Lua
setCamFarDof(cam, farDOF)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
farDOFfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_FAR_DOF(Cam cam, float farDOF)
Hash
0xEDD91296CD01AEE0

Open in the interactive natives reference