The Lab
ITEMDATABASE native

_ITEMDATABASE_GET_HAS_SLOT_INFO

returns BOOL3 paramsbuild 1207

Writes slot index exposed by items of category to outSlotId. Returns true on success.

Signature

C
BOOL _ITEMDATABASE_GET_HAS_SLOT_INFO(Hash category, int index, Hash* outSlotId); // 0x8A9BD0DB7E8376CF b1207

Parameters

#NameType
1categoryHash
2indexint
3outSlotIdHash* (out pointer)

Facts

Facts about _ITEMDATABASE_GET_HAS_SLOT_INFO
Name
_ITEMDATABASE_GET_HAS_SLOT_INFO
Hash
0x8A9BD0DB7E8376CF
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result, outSlotId = Citizen.InvokeNative(0x8A9BD0DB7E8376CF, -- _ITEMDATABASE_GET_HAS_SLOT_INFO
  GetHashKey("name"), -- Hash category
  0, -- int index
  Citizen.PointerValueInt(), -- Hash* outSlotId
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, outSlotId] = Citizen.invokeNative("0x8A9BD0DB7E8376CF", // _ITEMDATABASE_GET_HAS_SLOT_INFO
  GetHashKey("name"), // Hash category
  0, // int index
  Citizen.pointerValueInt(), // Hash* outSlotId
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outSlotIdArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0x8A9BD0DB7E8376CF, // _ITEMDATABASE_GET_HAS_SLOT_INFO
  (uint)API.GetHashKey("name"), // Hash category
  0, // int index
  outSlotIdArg // Hash* outSlotId
);
int outSlotId = outSlotIdArg.GetResult<int>();
All ITEMDATABASE natives

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