# CAMERA::DESTROY_CAM

- **Hash:** `0x4E67E0B6D7FD5145`
- **Namespace:** CAMERA
- **Runtime name (Lua/JS):** `DestroyCam`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/CAMERA/DESTROY_CAM

## Signature

```c
void DESTROY_CAM(Cam cam, BOOL p1);
```

## Parameters

- `cam` (`Cam`)
- `p1` (`BOOL`)

## Returns

`void`

## Description

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

## Usage

### Lua

```lua
DestroyCam(cam, p1)

-- always available, by hash
Citizen.InvokeNative(0x4E67E0B6D7FD5145, cam, p1)
```

### JavaScript

```js
DestroyCam(cam, p1);

// by hash
Citizen.invokeNative('0x4E67E0B6D7FD5145', cam, p1);
```

### C#

```csharp
Function.Call((Hash)0x4E67E0B6D7FD5145, cam, p1);
```

*Sources: alloc8or RDR3 NativeDB.*
