_GET_META_PED_TYPE
MPT_MALE, MPT_FEMALE, MPT_TEEN, MPT_ANIMAL, MPT_NONE
Hash
0xEC9A1261BF0CE510Runtime name
GetMetaPedTypeNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_META_PED_TYPE(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns int
Description
enum eMetaPedType
{
MPT_MALE,
MPT_FEMALE,
MPT_TEEN,
MPT_ANIMAL,
MPT_NONE
};Usage
local retval = GetMetaPedType(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xEC9A1261BF0CE510, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetMetaPedType(ped);
// by hash
const retval = Citizen.invokeNative('0xEC9A1261BF0CE510', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
InvokeNativewith the hash — it always works.
Enums and flags
- eMetaPedType 4 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.