# ENTITY::DOES_ENTITY_BELONG_TO_THIS_SCRIPT

- **Hash:** `0x622B1980CBE13332`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `DoesEntityBelongToThisScript`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/DOES_ENTITY_BELONG_TO_THIS_SCRIPT

## Signature

```c
BOOL DOES_ENTITY_BELONG_TO_THIS_SCRIPT(Entity entity, BOOL p1);
```

## Parameters

- `entity` (`Entity`)
- `p1` (`BOOL`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval = DoesEntityBelongToThisScript(entity, p1)

-- always available, by hash
local retval = Citizen.InvokeNative(0x622B1980CBE13332, entity, p1, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = DoesEntityBelongToThisScript(entity, p1);

// by hash
const retval = Citizen.invokeNative('0x622B1980CBE13332', entity, p1, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x622B1980CBE13332, entity, p1);
```

*Sources: alloc8or RDR3 NativeDB.*
