RedM Natives

GET_PED_TYPE

Hash0xFF059E1E4C01E63C
Runtime nameGetPedType
NamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xFF059E1E4C01E63C

Signature

int GET_PED_TYPE(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns int

Usage

Lua
local retval = GetPedType(ped)

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

// by hash
const retval = Citizen.invokeNative('0xFF059E1E4C01E63C', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xFF059E1E4C01E63C, ped);

Sources

alloc8or RDR3 NativeDB

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