The Lab
PED native

_GET_SHOP_ITEM_NUM_WEARABLE_STATES

returns int3 paramsbuild 1207

Returns how many wearable states (such as rolled sleeves) the shop item componentHash has.

Signature

C
int _GET_SHOP_ITEM_NUM_WEARABLE_STATES(Hash componentHash, BOOL isMpFemale, BOOL p2); // 0xFFCC2DB2D9953401 b1207

Parameters

#NameType
1componentHashHash
2isMpFemaleBOOL
3p2BOOL

Facts

Facts about _GET_SHOP_ITEM_NUM_WEARABLE_STATES
Name
_GET_SHOP_ITEM_NUM_WEARABLE_STATES
Hash
0xFFCC2DB2D9953401
Namespace
Returns
int
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(0xFFCC2DB2D9953401, -- _GET_SHOP_ITEM_NUM_WEARABLE_STATES
  GetHashKey("name"), -- Hash componentHash
  false, -- BOOL isMpFemale
  false, -- BOOL p2
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0xFFCC2DB2D9953401", // _GET_SHOP_ITEM_NUM_WEARABLE_STATES
  GetHashKey("name"), // Hash componentHash
  false, // BOOL isMpFemale
  false, // BOOL p2
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0xFFCC2DB2D9953401, // _GET_SHOP_ITEM_NUM_WEARABLE_STATES
  (uint)API.GetHashKey("name"), // Hash componentHash
  false, // BOOL isMpFemale
  false // BOOL p2
);
All PED natives

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