Inventoryhud - Shops

Fixed, weight in sql should be removed entirely. Line 312 needs to be replaced with

targetItem.limit == -1 or ((targetItem.count + count) <= targetItem.limit) then

and then you can adjust item limit in the sql to your desire with prices .etc
vehicle trunk weight is all configured in the config file. This took be forever to figure out literally was was right in front of me on like 313 lol.

2 Likes

same error here did you fix your?

hi im getting this error when i try to buy something
@esx_inventoryhud/server/main.lua:317: attempt to perform arithmetic on a nil value (field price)

can someone help pls

Did you solve this ?

@succ3ssgaming I am having the same problem with the shop hud locking up where is the esx basic inventory I have spent 2 hours trying to get this work

@jploughman if you install esx stock it should have basic inventory working by default


sorry for my bad english.
I beg of your help.
how do you make a limit on the inventory as shown?

I really hope for help from all of you.

1 Like

I’m not able to purchase the license.
The error I get is:

SCRIPT ERROR: @esx_inventoryhud/server/main.lua:397 attempt to compare number with nil

As I understand problem occurs when server tries to add the weapon license to the DB.
Could someone help me?

I have an issue, I cannot close the inventory after opening it. I have tried changing the inventory close key but that has made no difference. I do not have any database or console errors so I am unsure of why the inventory will not close.

Update - None of the shops seem to work, I can open the shop but cannot drag an item into my inventory. (I have no errors at all)

This Release is very Cool, an I Like it very much.

But I have 3 Questions

  1. Is it Possible to open the Trunk of a Car?

  2. To use some Items, do I have to make them usable by my self?

  3. This has Nothing to do with your Script, but if I’m there before, I can ask it right away.
    I cant buy Water or Bread. It dos not even work with the normal esx_shop script.

Would be cool, if someone could help me.

I have installed the scripts the shops and everything are pulling up but when I go to close out the menu for the shops or inventory it is freezing on it.

why I only bought one item even though I already configured it in the database?

Hey how did you make the stores require stock

Could you help me? Everything works correctly, but I go to the stores, I don’t buy bread or water, but I buy 1 weapon and if it works, what happens is the problem.?

Limit dont work. Need to set -1 for every item then it will work. For me it work but i cant give/drop items.
Do you know how to fix give/drop?

blatant work! THANKS FOR THAT

However, the arms dealer doesn’t work for me.
When I want to buy a gun license, I get this message:
SCRIPT ERROR: @ esx_inventoryhud / server / main.lua: 396: attempt to compare number with nil

Weapon is included in the DB as a license.

I cant buy anything in the stores can someone help please

thank you very much friend it worked for me

Did you ever get it to work?

also i need this, the weight of item could be also better nobody knows how to do it?