Im having trouble with ox inventory if anyone can help

The script loads up fine but you cant open the inventory and the shops dont exist but when you restart it this error message appears

SCRIPT ERROR: @ox_inventory/modules/bridge/esx/server.lua:56: attempt to call a nil value (field ‘syncInventory’)

this is the line in server.lua

52 —@diagnostic disable-next-line: duplicate-set-field
51 function server.syncInventory(inv)
52 local accounts = Inventory.GetAccountItemCounts(inv)
53
54 if accounts then
55 local player = server.GetPlayerFromId(inv.id)
56 player.syncInventory(inv.weight, inv.maxWeight, inv.items, accounts)
57 end
58 end

I tried everything and i even deleted the whole server and and started from scratch still dousnt work

same problem

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.