CameraClient

setCamDofOverriddenFocusDistance

SET_CAM_DOF_OVERRIDDEN_FOCUS_DISTANCE0xF55E4046F6F831DC

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

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

Usage

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

Parameters

ParameterTypeJavaScriptLua
cameraCamnumberinteger
p1floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_DOF_OVERRIDDEN_FOCUS_DISTANCE(Cam camera, float p1)
Hash
0xF55E4046F6F831DC

Open in the interactive natives reference