CameraClient

setCamDofMaxNearInFocusDistance

SET_CAM_DOF_MAX_NEAR_IN_FOCUS_DISTANCE0xC3654A441402562D

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

SignatureJavaScript
setCamDofMaxNearInFocusDistance(camera: Cam, p1: number): void
SignatureLua
setCamDofMaxNearInFocusDistance(camera: Cam, p1: number)

Usage

JavaScript
setCamDofMaxNearInFocusDistance(camera, p1);
Lua
setCamDofMaxNearInFocusDistance(camera, p1)

Parameters

ParameterTypeJavaScriptLua
cameraCamnumberinteger
p1floatnumbernumber

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.

This native has a name defined inside its code

Reference

Namespace
Camera CAM
In the game
void SET_CAM_DOF_MAX_NEAR_IN_FOCUS_DISTANCE(Cam camera, float p1)
Hash
0xC3654A441402562D
Formerly
_SET_CAM_DOF_MAX_NEAR_IN_FOCUS_DISTANCE

Open in the interactive natives reference