_INVENTORY_GET_IS_INVENTORY_ITEM_SOUND_VALID
Hash
0x2BAE4880DCDD560BRuntime name
InventoryGetIsInventoryItemSoundValidNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _INVENTORY_GET_IS_INVENTORY_ITEM_SOUND_VALID(Hash item, int soundType);Parameters
| Name | Type | Description |
|---|---|---|
item | Hash | — |
soundType | int | — |
Returns BOOL
Description
soundType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/CItemInfoSoundsInterface__sSoundsInfo__eSoundType
Usage
local retval = InventoryGetIsInventoryItemSoundValid(item, soundType)
-- always works, by hash
local retval = Citizen.InvokeNative(0x2BAE4880DCDD560B, item, soundType, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = InventoryGetIsInventoryItemSoundValid(item, soundType);
// by hash
const retval = Citizen.invokeNative('0x2BAE4880DCDD560B', item, soundType, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x2BAE4880DCDD560B, item, soundType);- 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.
Enums and flags
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.