heyy
weird error here with esx_addoninventory and esx_property
whenever i store an item ive got this error
BUT if i add manually an item to my DB in addon_inventory_items, I do see them in game, and i’m able to take it, and store it again
Problem is that every other items still doesn’t work as they doesn’t add in the DB by themselves
ive seen a “fix” on github : commenting line 36 to 40 in addoninventory.lua
it fix the DB adding issue, but the items add with a “0” count so they don’t appear in-game, i can only see them in db as 0x
ty for your help
Are you sure you are using the lastest version of the script?
As I can see when I’m checking the code is that your “items” table in your database doesn’t have the same “name” as the item you are trying to put in your in your “property”, make sure they have the same name, and do not restart the ressources, because the ressources is fetching all the items in your db when it launch and not when it get restarted
TonyVk
4
Today I “fixed” it for esx_families, I edited that line inside addoninventory.lua from Items to items. It works but I’m not sure still is it the right way or is something else problem. You can try it and see does it work normal or is then something else broken.
Edit: Found better solution. In esx_addoninventory/server/main.lua on top of script you have this
local InventoriesIndex, Inventories, SharedInventories, Items = {}, {}, {}, {}
change that to:
Items = {}
local InventoriesIndex, Inventories, SharedInventories = {}, {}, {}
1 Like
What line is it at? I can’t find it?
Last version on github has it fixed. Link
Just download that version and error is fixed.