# TASK::_HAS_PED_ANIMAL_BEEN_SAMPLED

- **Hash:** `0x7CB99FADDE73CD1B`
- **Namespace:** TASK
- **Runtime name (Lua/JS):** `HasPedAnimalBeenSampled`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1311
- **URL:** https://natives.borderlinerp.com/natives/TASK/_HAS_PED_ANIMAL_BEEN_SAMPLED

## Signature

```c
Any _HAS_PED_ANIMAL_BEEN_SAMPLED(Any p0);
```

## Parameters

- `p0` (`Any`)

## Returns

`Any`

## Description

*Source: VORPCORE RDR3natives*

Returns true if the specified ped (animal) has been flagged as sampled. This is presumed to read a boolean flag set by:`_FORCE_ANIMAL_SAMPLED`

## Usage

### Lua

```lua
local retval = HasPedAnimalBeenSampled(p0)

-- always available, by hash
local retval = Citizen.InvokeNative(0x7CB99FADDE73CD1B, p0, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = HasPedAnimalBeenSampled(p0);

// by hash
const retval = Citizen.invokeNative('0x7CB99FADDE73CD1B', p0, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x7CB99FADDE73CD1B, p0);
```

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