_GET_SHOP_ITEM_NUM_WEARABLE_STATES
Returns the number of wearable states available for a shop item / component.
Hash
0xFFCC2DB2D9953401Runtime name
GetShopItemNumWearableStatesNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
int _GET_SHOP_ITEM_NUM_WEARABLE_STATES(Hash componentHash, BOOL isMpFemale, BOOL p2);Parameters
| Name | Type | Description |
|---|---|---|
componentHash | Hash | — |
isMpFemale | BOOL | — |
p2 | BOOL | — |
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
local retval = GetShopItemNumWearableStates(componentHash, isMpFemale, p2)
-- always works, by hash
local retval = Citizen.InvokeNative(0xFFCC2DB2D9953401, componentHash, isMpFemale, p2, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetShopItemNumWearableStates(componentHash, isMpFemale, p2);
// by hash
const retval = Citizen.invokeNative('0xFFCC2DB2D9953401', componentHash, isMpFemale, p2, Citizen.returnResultAnyway(), Citizen.resultAsInteger());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.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.