Skip to content

ox inventory exploit #1963

Description

@Whisperisgod

Describe the bug

Items stored in a vehicle's glovebox are duplicated after storing the vehicle in the garage and taking it out again.

If a player places an item in the glovebox, stores the vehicle in the garage, and then retrieves it again, the item is duplicated instead of being saved correctly.

Framework

Qbox

Resource version

(Please replace this with your ox_inventory version from fxmanifest.lua.)

To Reproduce

  1. Spawn or take out a vehicle.
  2. Open the glovebox and place any item inside.
  3. Store the vehicle in the garage.
  4. Take the same vehicle out of the garage.
  5. Open the glovebox again.
  6. The item has been duplicated.

Expected behavior

Items placed inside the glovebox should persist correctly after storing and retrieving the vehicle. No items should be duplicated.

Screenshots

A video demonstrating the issue is attached.

Additional context

This happens consistently when storing a vehicle with items inside the glovebox and then retrieving it from the garage. The attached video shows the duplication occurring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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