_UPDATE_SHOP_ITEM_WEARABLE_STATE
Possible way to pull up / down bandana for male and female models:
Hash
0x66B957AAC2EAAEABRuntime name
UpdateShopItemWearableStateNamespacePED
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _UPDATE_SHOP_ITEM_WEARABLE_STATE(Ped ped, Hash componentHash, Hash wearableState, int p3, BOOL isMp, int p5);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
componentHash | Hash | — |
wearableState | Hash | — |
p3 | int | — |
isMp | BOOL | — |
p5 | int | — |
Returns void
Description
Possible way to pull up / down bandana for male and female models: https://imgur.com/a/Zr4pjze
Params: p3 = 0, p4 = true, p5 = 1
wearableState: https://github.com/Jump-On-Studios/RedM-jo_libs/blob/main/jo_libs/modules/component/g_client.lua#L138
Usage
UpdateShopItemWearableState(ped, componentHash, wearableState, p3, isMp, p5)
-- always works, by hash
Citizen.InvokeNative(0x66B957AAC2EAAEAB, ped, componentHash, wearableState, p3, isMp, p5)JavaScript and C#
UpdateShopItemWearableState(ped, componentHash, wearableState, p3, isMp, p5);
// by hash
Citizen.invokeNative('0x66B957AAC2EAAEAB', ped, componentHash, wearableState, p3, isMp, p5);Function.Call((Hash)0x66B957AAC2EAAEAB, ped, componentHash, wearableState, p3, isMp, p5);- 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.