destroyCam
DESTROY_CAM0x865908C81A2C22E9The 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.
destroyCam(cam: Cam, bScriptHostCam: boolean): voiddestroyCam(cam: Cam, bScriptHostCam: boolean)Usage
JavaScript
destroyCam(cam, bScriptHostCam);Lua
destroyCam(cam, bScriptHostCam)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
cam | Cam | number | integer |
bScriptHostCam | BOOL | boolean | boolean |
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