RedM Natives

_GET_SHOP_ITEM_HAT_COMPONENT

Hash0x7E02E4218D916B94
Runtime nameGetShopItemHatComponent
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Any _GET_SHOP_ITEM_HAT_COMPONENT(Ped ped, int metapedType, BOOL p2);

Parameters

NameTypeDescription
pedPed—
metapedTypeint—
p2BOOL—

Returns Any

Usage

Lua
local retval = GetShopItemHatComponent(ped, metapedType, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0x7E02E4218D916B94, ped, metapedType, p2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetShopItemHatComponent(ped, metapedType, p2);

// by hash
const retval = Citizen.invokeNative('0x7E02E4218D916B94', ped, metapedType, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x7E02E4218D916B94, ped, metapedType, p2);
  • 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.