CameraClient

setCamDofPlanes

SET_CAM_DOF_PLANES0x3CF48F6F96E749DC

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

SignatureJavaScript
setCamDofPlanes(
  cam: Cam,
  p1: number,
  p2: number,
  p3: number,
  p4: number
): void
SignatureLua
setCamDofPlanes(cam: Cam, p1: number, p2: number, p3: number, p4: number)

Usage

JavaScript
setCamDofPlanes(cam, p1, p2, p3, p4);
Lua
setCamDofPlanes(cam, p1, p2, p3, p4)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
p1floatnumbernumber
p2floatnumbernumber
p3floatnumbernumber
p4floatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_DOF_PLANES(Cam cam, float p1, float p2, float p3, float p4)
Hash
0x3CF48F6F96E749DC

Open in the interactive natives reference