_GET_SHOP_ITEM_HAT_COMPONENT
Hash
0x7E02E4218D916B94Runtime name
GetShopItemHatComponentNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Any _GET_SHOP_ITEM_HAT_COMPONENT(Ped ped, int metapedType, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
metapedType | int | — |
p2 | BOOL | — |
Returns Any
Usage
local retval = GetShopItemHatComponent(ped, metapedType, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0x7E02E4218D916B94, ped, metapedType, p2, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetShopItemHatComponent(ped, metapedType, p2);
// by hash
const retval = Citizen.invokeNative('0x7E02E4218D916B94', ped, metapedType, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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
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.