# MISC::IS_PROJECTILE_TYPE_IN_AREA

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

## Signature

```c
BOOL IS_PROJECTILE_TYPE_IN_AREA(float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, Hash weaponType, BOOL isPlayer);
```

## Parameters

- `xMin` (`float`)
- `yMin` (`float`)
- `zMin` (`float`)
- `xMax` (`float`)
- `yMax` (`float`)
- `zMax` (`float`)
- `weaponType` (`Hash`)
- `isPlayer` (`BOOL`)

## Returns

`BOOL`

## Description

Determines whether there is a projectile of a specific type within the specified coordinates. The coordinates form a rectangle.

## Usage

### Lua

```lua
local retval = IsProjectileTypeInArea(xMin, yMin, zMin, xMax, yMax, zMax, weaponType, isPlayer)

-- always available, by hash
local retval = Citizen.InvokeNative(0x04965FB9E14235C7, xMin, yMin, zMin, xMax, yMax, zMax, weaponType, isPlayer, Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const retval = IsProjectileTypeInArea(xMin, yMin, zMin, xMax, yMax, zMax, weaponType, isPlayer);

// by hash
const retval = Citizen.invokeNative('0x04965FB9E14235C7', xMin + 0.0000001, yMin + 0.0000001, zMin + 0.0000001, xMax + 0.0000001, yMax + 0.0000001, zMax + 0.0000001, weaponType, isPlayer, Citizen.returnResultAnyway());
```

### C#

```csharp
bool retval = Function.Call<bool>((Hash)0x04965FB9E14235C7, xMin, yMin, zMin, xMax, yMax, zMax, weaponType, isPlayer);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.
- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.

*Sources: alloc8or RDR3 NativeDB.*
