Functions
Server
Inventory
CanSwapItem

Returns true if the item swap is possible based on inventory weight.

exports.ox_inventory:CanSwapItem(inv, firstItem, firstItemCount, testItem, testItemCount)
  • inv: table or string or number
  • firstItem: string
  • firstItemCount: number
  • testItem: string
  • testItemCount: number