RedM Natives

_UPDATE_SHOP_ITEM_WEARABLE_STATE

Possible way to pull up / down bandana for male and female models:

Hash0x66B957AAC2EAAEAB
Runtime nameUpdateShopItemWearableState
NamespacePED
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

NameTypeDescription
pedPed—
componentHashHash—
wearableStateHash—
p3int—
isMpBOOL—
p5int—

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

Lua
UpdateShopItemWearableState(ped, componentHash, wearableState, p3, isMp, p5)

-- always works, by hash
Citizen.InvokeNative(0x66B957AAC2EAAEAB, ped, componentHash, wearableState, p3, isMp, p5)
JavaScript and C#
JavaScript
UpdateShopItemWearableState(ped, componentHash, wearableState, p3, isMp, p5);

// by hash
Citizen.invokeNative('0x66B957AAC2EAAEAB', ped, componentHash, wearableState, p3, isMp, p5);
C#
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.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.