VORPCORE/vorp_inventory-lua

Issue after restarting resource that use vorp_inventory

zVoxty opened this issue · 2 comments

zVoxty commented

After the update, there is an issue with the resources that use vorp_inventory after it is restarted
Steps to reproduce:

  1. Register an item in the server.lua with:
    VorpInv.RegisterUsableItem('lumberaxe', function(data)
    print('work')
    VorpInv.CloseInv(data.source)
    end)

  2. Restart the respective resource and then it will work properly after using the item

  3. Restart the respective resource one more time and you will see the below error when double clicking the respective item.
    image

PS: After restarting the server it works but for development, it is a pain because I need to restart the server every time.

i do not find any issues in restarting resources , you cant restart inventory without restarting the scripts that depends on it

this was fixed