# PED::_GET_META_PED_TYPE

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

## Signature

```c
int _GET_META_PED_TYPE(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`int`

## Description

enum eMetaPedType
{
	MPT_MALE,
	MPT_FEMALE,
	MPT_TEEN,
	MPT_ANIMAL,
	MPT_NONE
};

## Usage

### Lua

```lua
local retval = GetMetaPedType(ped)

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

### JavaScript

```js
const retval = GetMetaPedType(ped);

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

### C#

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

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

## Related enums

- [eMetaPedType](https://natives.borderlinerp.com/enums/eMetaPedType.md) — 4 values

*Sources: alloc8or RDR3 NativeDB.*
