# AICOVERPOINT::_GET_PED_FROM_COVER_POINT

- **Hash:** `0x140B3CB1D424A945`
- **Namespace:** AICOVERPOINT
- **Runtime name (Lua/JS):** `GetPedFromCoverPoint`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/AICOVERPOINT/_GET_PED_FROM_COVER_POINT

## Signature

```c
void _GET_PED_FROM_COVER_POINT(Ped ped, Hash weaponHash);
```

## Parameters

- `ped` (`Ped`)
- `weaponHash` (`Hash`)

## Returns

`void`

## Description

*Source: alloc8or RDR3 NativeDB*

weaponHash can also be -1

*Source: VORPCORE RDR3natives*

returns the ped that is using this cover point created by ADD_COVER_POINT and adding the ped using tasks like `TASK_PUT_PED_DIRECTLY_(*`

## Usage

### Lua

```lua
GetPedFromCoverPoint(ped, weaponHash)

-- always available, by hash
Citizen.InvokeNative(0x140B3CB1D424A945, ped, weaponHash)
```

### JavaScript

```js
GetPedFromCoverPoint(ped, weaponHash);

// by hash
Citizen.invokeNative('0x140B3CB1D424A945', ped, weaponHash);
```

### C#

```csharp
Function.Call((Hash)0x140B3CB1D424A945, ped, weaponHash);
```

- 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` ``.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

*Sources: alloc8or RDR3 NativeDB, VORPCORE RDR3natives.*
