# PED::GET_PED_DEFENSIVE_AREA_POSITION

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

## Signature

```c
Vector3 GET_PED_DEFENSIVE_AREA_POSITION(Ped ped, BOOL p1);
```

## Parameters

- `ped` (`Ped`)
- `p1` (`BOOL`)

## Returns

`Vector3`

## Usage

### Lua

```lua
local retval = GetPedDefensiveAreaPosition(ped, p1)

-- always available, by hash
local retval = Citizen.InvokeNative(0x3C06B8786DD94CD1, ped, p1, Citizen.ResultAsVector())
```

### JavaScript

```js
const retval = GetPedDefensiveAreaPosition(ped, p1);

// by hash
const retval = Citizen.invokeNative('0x3C06B8786DD94CD1', ped, p1, Citizen.returnResultAnyway(), Citizen.resultAsVector());
```

### C#

```csharp
Vector3 retval = Function.Call<Vector3>((Hash)0x3C06B8786DD94CD1, ped, p1);
```

*Sources: alloc8or RDR3 NativeDB.*
