CameraClientChecked by LS:MP

destroyAllCams

DESTROY_ALL_CAMS0x8E5FB15663F79120

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

SignatureJavaScript
destroyAllCams(bScriptHostCam: boolean): void
SignatureLua
destroyAllCams(bScriptHostCam: boolean)

Usage

JavaScript
destroyAllCams(bScriptHostCam);
Lua
destroyAllCams(bScriptHostCam)

Parameters

ParameterTypeJavaScriptLua
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_ALL_CAMS(BOOL bScriptHostCam)
Hash
0x8E5FB15663F79120

Open in the interactive natives reference