MaDHouSe79 / mh-cashasitem

The best cash/blackmoney/crypto item script for your qbcore server created by MaDHouSe79.
GNU General Public License v3.0
34 stars 6 forks source link

Attempt to call a nil value #3

Closed benjibrew closed 8 months ago

benjibrew commented 8 months ago

Hello! :) I implemented mh_inventory and mh_cashasitem exactly as its told in the readme files but I get the following 2 errors in my server console when updating the cash item via opening the inventory (all stock qbcore).

SCRIPT ERROR: @mh-cashasitem/server/main.lua:47: attempt to call a nil value (global 'RemoveItem‘)

SCRIPT ERROR: @mh-cashasitem/server/main.lua:54: attempt to call a nil value (global 'AddItem‘)

Did I do something wrong? When I´m adding the cash item manually to my inventory and removing it the cash value gets updated as it should.

Sorry for the support request.

MaDHouSe79 commented 8 months ago

i see, if you get the code from the server file here, i just update it, try if it works now ;)

benjibrew commented 8 months ago

You are a god. <3