CameraClientChecked by LS:MP

destroyCam

DESTROY_CAM0x865908C81A2C22E9

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

SignatureJavaScript
destroyCam(cam: Cam, bScriptHostCam: boolean): void
SignatureLua
destroyCam(cam: Cam, bScriptHostCam: boolean)

Usage

JavaScript
destroyCam(cam, bScriptHostCam);
Lua
destroyCam(cam, bScriptHostCam)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
bScriptHostCamBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Resource scope

Pass false or 0 for bScriptHostCam. A nonzero value raises an error.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

BOOL param indicates whether the cam should be destroyed if it belongs to the calling script.

Reference

Namespace
Camera CAM
In the game
void DESTROY_CAM(Cam cam, BOOL bScriptHostCam)
Hash
0x865908C81A2C22E9

Open in the interactive natives reference