# TASK::ADD_COVER_BLOCKING_AREA

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

## Signature

```c
void ADD_COVER_BLOCKING_AREA(float playerX, float playerY, float playerZ, float radiusX, float radiusY, float radiusZ, BOOL p6, BOOL p7, BOOL p8, BOOL p9);
```

## Parameters

- `playerX` (`float`)
- `playerY` (`float`)
- `playerZ` (`float`)
- `radiusX` (`float`)
- `radiusY` (`float`)
- `radiusZ` (`float`)
- `p6` (`BOOL`)
- `p7` (`BOOL`)
- `p8` (`BOOL`)
- `p9` (`BOOL`)

## Returns

`void`

## Usage

### Lua

```lua
AddCoverBlockingArea(playerX, playerY, playerZ, radiusX, radiusY, radiusZ, p6, p7, p8, p9)

-- always available, by hash
Citizen.InvokeNative(0x45C597097DD7CB81, playerX, playerY, playerZ, radiusX, radiusY, radiusZ, p6, p7, p8, p9)
```

### JavaScript

```js
AddCoverBlockingArea(playerX, playerY, playerZ, radiusX, radiusY, radiusZ, p6, p7, p8, p9);

// by hash
Citizen.invokeNative('0x45C597097DD7CB81', playerX + 0.0000001, playerY + 0.0000001, playerZ + 0.0000001, radiusX + 0.0000001, radiusY + 0.0000001, radiusZ + 0.0000001, p6, p7, p8, p9);
```

### C#

```csharp
Function.Call((Hash)0x45C597097DD7CB81, playerX, playerY, playerZ, radiusX, radiusY, radiusZ, p6, p7, p8, p9);
```

- 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.*
