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.

[Bug] Error on Restarting (Inventory Locks) #15

@ghost

Description

Describe the bug
When the server is restarting and the inventories lock the script tends to error on the callback ox_inventory:useItem

Framework
ESX

Resource version
2.44.3

To Reproduce

  1. Restart your server (force inventories to lock)
  2. Use an item
  3. Error appears

Expected behavior
Not sure.

Screenshots

[ script:ox_inventory] SCRIPT ERROR: @ox_inventory/server.lua:378: attempt to index a boolean value (local 'inventory')
[ script:ox_inventory] > callbackResponse (@ox_lib/imports/callback/server.lua:101)
[ script:ox_inventory] > ? (@ox_lib/imports/callback/server.lua:122)
[ script:ox_inventory] 

Additional context
Nope

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