RedM Natives

_GET_META_PED_TYPE

MPT_MALE, MPT_FEMALE, MPT_TEEN, MPT_ANIMAL, MPT_NONE

Hash0xEC9A1261BF0CE510
Runtime nameGetMetaPedType
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_META_PED_TYPE(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns int

Description

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

Usage

Lua
local retval = GetMetaPedType(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0xEC9A1261BF0CE510, ped, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetMetaPedType(ped);

// by hash
const retval = Citizen.invokeNative('0xEC9A1261BF0CE510', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
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.

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.