Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

exports.ox_inventory:AddItem(inv, item, count, metadata, slot, cb) with count = 0 bugs item in inventory #14

@renatomachadoo

Description

@renatomachadoo

Describe the bug
When execute this: exports.ox_inventory:AddItem(inv, item, count, metadata, slot, cb) and in count put 0 it adds the item to inventory and it bugs in inventory dont allowind to do nothing with it.

Framework
QBX

Resource version
2.44.1

To Reproduce
Steps to reproduce the behavior:

  1. Execute: exports.ox_inventory:AddItem(inv, item, count, metadata, slot, cb) where count = 0
  2. See error

Expected behavior
Just add item if count > 0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions