CameraClient

detachCam

DETACH_CAM0xA2FABBE87F4BAD82

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

SignatureJavaScript
detachCam(cam: Cam): void
SignatureLua
detachCam(cam: Cam)

Usage

JavaScript
detachCam(cam);
Lua
detachCam(cam)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Camera CAM
In the game
void DETACH_CAM(Cam cam)
Hash
0xA2FABBE87F4BAD82

Open in the interactive natives reference