The Lab
PED native

_GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX

returns Hash4 paramsbuild 1207

Returns the hash of the wearable state at wearableStateIndex for the shop item componentHash.

Signature

C
Hash _GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX(Hash componentHash, int wearableStateIndex, BOOL isMpFemale, BOOL p3); // 0x6243635AF2F1B826 b1207

Parameters

#NameType
1componentHashHash
2wearableStateIndexint
3isMpFemaleBOOL
4p3BOOL

Facts

Facts about _GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX
Name
_GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX
Hash
0x6243635AF2F1B826
Namespace
Returns
Hash
Game build
1207

Examples

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

Lua
local hash = Citizen.InvokeNative(0x6243635AF2F1B826, -- _GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX
  GetHashKey("name"), -- Hash componentHash
  0, -- int wearableStateIndex
  false, -- BOOL isMpFemale
  false, -- BOOL p3
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x6243635AF2F1B826", // _GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX
  GetHashKey("name"), // Hash componentHash
  0, // int wearableStateIndex
  false, // BOOL isMpFemale
  false, // BOOL p3
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x6243635AF2F1B826, // _GET_SHOP_ITEM_WEARABLE_STATE_BY_INDEX
  (uint)API.GetHashKey("name"), // Hash componentHash
  0, // int wearableStateIndex
  false, // BOOL isMpFemale
  false // BOOL p3
);
All PED natives

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