The Lab
PED native

_GET_SHOP_ITEM_HAT_COMPONENT

returns Any3 paramsbuild 1207

Based on its name and signature, here is our best reading:

Appears to return the hat component worn by ped.

Signature

C
Any _GET_SHOP_ITEM_HAT_COMPONENT(Ped ped, int metapedType, BOOL p2); // 0x7E02E4218D916B94 b1207

Parameters

#NameType
1pedPed
2metapedTypeint
3p2BOOL

Facts

Facts about _GET_SHOP_ITEM_HAT_COMPONENT
Name
_GET_SHOP_ITEM_HAT_COMPONENT
Hash
0x7E02E4218D916B94
Namespace
Returns
Any
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x7E02E4218D916B94, -- _GET_SHOP_ITEM_HAT_COMPONENT
  PlayerPedId(), -- Ped ped
  0, -- int metapedType
  false, -- BOOL p2
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x7E02E4218D916B94", // _GET_SHOP_ITEM_HAT_COMPONENT
  PlayerPedId(), // Ped ped
  0, // int metapedType
  false, // BOOL p2
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x7E02E4218D916B94, // _GET_SHOP_ITEM_HAT_COMPONENT
  API.PlayerPedId(), // Ped ped
  0, // int metapedType
  false // BOOL p2
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.