RedM Natives

_GET_SHOP_ITEM_NUM_WEARABLE_STATES

Returns the number of wearable states available for a shop item / component.

Hash0xFFCC2DB2D9953401
Runtime nameGetShopItemNumWearableStates
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

int _GET_SHOP_ITEM_NUM_WEARABLE_STATES(Hash componentHash, BOOL isMpFemale, BOOL p2);

Parameters

NameTypeDescription
componentHashHash—
isMpFemaleBOOL—
p2BOOL—

Returns int

Description

Returns the number of wearable states available for a shop item / component. p2 seems to be true in scripts.

For use with 0x6243635AF2F1B826 (_GET_SHOP_ITEM_AVAILABLE_WEARABLE_STATE_BY_INDEX)

Usage

Lua
local retval = GetShopItemNumWearableStates(componentHash, isMpFemale, p2)

-- always works, by hash
local retval = Citizen.InvokeNative(0xFFCC2DB2D9953401, componentHash, isMpFemale, p2, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetShopItemNumWearableStates(componentHash, isMpFemale, p2);

// by hash
const retval = Citizen.invokeNative('0xFFCC2DB2D9953401', componentHash, isMpFemale, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xFFCC2DB2D9953401, componentHash, isMpFemale, p2);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • 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.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.