CameraClient

setCamDofStrength

SET_CAM_DOF_STRENGTH0x5EE29B4D7D5DF897

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

SignatureJavaScript
setCamDofStrength(cam: Cam, dofStrength: number): void
SignatureLua
setCamDofStrength(cam: Cam, dofStrength: number)

Usage

JavaScript
setCamDofStrength(cam, dofStrength);
Lua
setCamDofStrength(cam, dofStrength)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
dofStrengthfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_DOF_STRENGTH(Cam cam, float dofStrength)
Hash
0x5EE29B4D7D5DF897

Open in the interactive natives reference