The Lab
INVENTORY native

_INVENTORY_GET_INVENTORY_ITEM_SOUND

returns Hash2 paramsbuild 1207

Returns the sound hash of type soundType associated with item.

Signature

C
Hash _INVENTORY_GET_INVENTORY_ITEM_SOUND(Hash item, int soundType); // 0x2E1CDC1FF3B8473E b1207

Parameters

#NameType
1itemHash
2soundTypeint

Facts

Facts about _INVENTORY_GET_INVENTORY_ITEM_SOUND
Name
_INVENTORY_GET_INVENTORY_ITEM_SOUND
Hash
0x2E1CDC1FF3B8473E
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0x2E1CDC1FF3B8473E, -- _INVENTORY_GET_INVENTORY_ITEM_SOUND
  GetHashKey("name"), -- Hash item
  0, -- int soundType
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x2E1CDC1FF3B8473E", // _INVENTORY_GET_INVENTORY_ITEM_SOUND
  GetHashKey("name"), // Hash item
  0, // int soundType
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x2E1CDC1FF3B8473E, // _INVENTORY_GET_INVENTORY_ITEM_SOUND
  (uint)API.GetHashKey("name"), // Hash item
  0 // int soundType
);
All INVENTORY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.