CameraClient

setCamNearClip

SET_CAM_NEAR_CLIP0xC7848EFCCC545182

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

SignatureJavaScript
setCamNearClip(cam: Cam, nearClip: number): void
SignatureLua
setCamNearClip(cam: Cam, nearClip: number)

Usage

JavaScript
setCamNearClip(cam, nearClip);
Lua
setCamNearClip(cam, nearClip)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
nearClipfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void SET_CAM_NEAR_CLIP(Cam cam, float nearClip)
Hash
0xC7848EFCCC545182

Open in the interactive natives reference