CameraClient

setCamDofFocalLengthMultiplier

SET_CAM_DOF_FOCAL_LENGTH_MULTIPLIER0x47B595D60664CFFA

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

SignatureJavaScript
setCamDofFocalLengthMultiplier(camera: Cam, multiplier: number): void
SignatureLua
setCamDofFocalLengthMultiplier(camera: Cam, multiplier: number)

Usage

JavaScript
setCamDofFocalLengthMultiplier(camera, multiplier);
Lua
setCamDofFocalLengthMultiplier(camera, multiplier)

Parameters

ParameterTypeJavaScriptLua
cameraCamnumberinteger
multiplierfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Native name labeled within its code

Reference

Namespace
Camera CAM
In the game
void SET_CAM_DOF_FOCAL_LENGTH_MULTIPLIER(Cam camera, float multiplier)
Hash
0x47B595D60664CFFA
Introduced
Game build 1011 legacy numbering
Formerly
_SET_CAM_DOF_FOCAL_LENGTH_MULTIPLIER

Open in the interactive natives reference