The Lab
INVENTORY native

_INVENTORY_FITS_SLOT_ID

returns BOOL2 paramsbuild 1207

Returns true if item can be placed in the slot slotId.

Signature

C
BOOL _INVENTORY_FITS_SLOT_ID(Hash item, Hash slotId); // 0x780C5B9AE2819807 b1207

Parameters

#NameType
1itemHash
2slotIdHash

Facts

Facts about _INVENTORY_FITS_SLOT_ID
Name
_INVENTORY_FITS_SLOT_ID
Hash
0x780C5B9AE2819807
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 = Citizen.InvokeNative(0x780C5B9AE2819807, -- _INVENTORY_FITS_SLOT_ID
  GetHashKey("name"), -- Hash item
  GetHashKey("name") -- Hash slotId
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x780C5B9AE2819807", // _INVENTORY_FITS_SLOT_ID
  GetHashKey("name"), // Hash item
  GetHashKey("name"), // Hash slotId
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x780C5B9AE2819807, // _INVENTORY_FITS_SLOT_ID
  (uint)API.GetHashKey("name"), // Hash item
  (uint)API.GetHashKey("name") // Hash slotId
);
All INVENTORY natives

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