Inventoryhud - Shops

i need ur inventory hud plz lol…!!!

awesome bro! Keep up the good works!!!

ESX have changed since this has been released… now it use weight and not limit.

1 Like

looking for some help here i tried adding the sql to my data base but i am getting this error

ALTER TABLE items
ADD COLUMN price int(11) NOT NULL DEFAULT 0
;

#1060 - Duplicate column name ‘price’

after adding this

ALTER TABLE items
ADD COLUMN price int(11) NOT NULL DEFAULT 0
;

INSERT INTO items (name, label, weight, rare, can_remove, price) VALUES
(‘WEAPON_FLASHLIGHT’, ‘Flashlight’, 1, 0, 1, 12),
(‘WEAPON_STUNGUN’, ‘Taser’, 100, 1, 1, 12),
(‘WEAPON_KNIFE’, ‘Knife’, 100, 1, 1, 12),
(‘WEAPON_BAT’, ‘Baseball Bat’, 1, 0, 1, 12),
(‘WEAPON_PISTOL’, ‘Pistol’, 100, 1, 1, 12),
(‘WEAPON_PUMPSHOTGUN’, ‘Pump Shotgun’, 1, 0, 1, 12),
(‘9mm_rounds’, ‘9mm Rounds’, 20, 0, 1, 0),
(‘shotgun_shells’, ‘Shotgun Shells’, 20, 0, 1, 12),
(‘cigarette’, ‘Cigarette’, 20, 0, 1, 0),
(‘lighter’, ‘Lighter’, 20, 0, 1, 0),
(‘rollingpaper’, ‘Rolling Paper’, 20, 0, 1, 12),
(‘phone’, ‘Phone’, 20, 0, 1, 12),
(‘sandwich’, ‘Sandwich’, 20, 0, 1, 12),
(‘hamburger’, ‘Hamburger’, 20, 0, 1, 12),
(‘cupcake’, ‘Cupcake’, 20, 0, 1, 0),
(‘chips’, ‘Chips’, 20, 0, 1, 0),
(‘pistachio’, ‘Pistachio’, 20, 0, 1, 12),
(‘chocolate’, ‘Chocolate’, 20, 0, 1, 12),
(‘cashew’, ‘Cashew’, 20, 0, 1, 0),
(‘cocacola’, ‘Coca-Cola’, 20, 0, 1, 12),
(‘drpepper’, ‘Dr Pepper’, 20, 0, 1, 12),
(‘energy’, ‘Energy Drink’, 20, 0, 1, 12),
(‘lemonade’, ‘Lemonade’, 20, 0, 1, 12),
(‘icetea’, ‘Ice-Tea’, 20, 0, 1, 12),
(‘beer’, ‘Beer’, 20, 0, 1, 12),
(‘wine’, ‘Wine’, 20, 0, 1, 12),
(‘vodka’, ‘Vodka’, 20, 0, 1, 12),
(‘tequila’, ‘Tequila’, 20, 0, 1, 12),
(‘whisky’, ‘Whisky’, 20, 0, 1, 12),
(‘grand_cru’, ‘Champagne’, 20, 0, 1, 12),
(‘drill’, ‘Drill’, 20, 0, 1, 12),
(‘binocular’, ‘Binoculars’, 20, 0, 1, 12),
(‘fixkit’, ‘Fix Kit’, 20, 0, 1, 12),
(‘gps’, ‘GPS’, 20, 0, 1, 0),
(‘lockpick’, ‘Lockpick’, 20, 0, 1, 12),
(‘scubagear’, ‘Scuba Gear’, 20, 0, 1, 12),
(‘blowtorch’, ‘Blowtorch’, 20, 0, 1, 12),
(‘1gbag’, ‘Ziploc Bag[1g]’, 20, 0, 1, 12),
(‘5gbag’, ‘Ziploc Bag[5g]’, 20, 0, 1, 12),
(‘50gbag’, ‘Ziploc Bag[50g]’, 20, 0, 1, 12),
(‘100gbag’, ‘Ziploc Bag[100g]’, 20, 0, 1, 12),
(‘lowgradefert’, ‘Fertilizer [low]’, 20, 0, 1, 12),
(‘highgradefert’, ‘Fertilizer [high]’, 20, 0, 1, 12),
(‘plantpot’, ‘Plant Pot’, 20, 0, 1, 12),
(‘drugscales’, ‘Scales’, 20, 0, 1, 12)
;

i could be missing something but i am not sure, i am pretty new to this so it is a lot of trail and error

i found the a answer to this. i added the weight column to my item table and then deleted the

ALTER TABLE items
ADD COLUMN price int(11) NOT NULL DEFAULT 0
;

after that the table loaded i don’t know if this broke anything tho

#1060 - Duplicate column name ‘price’

after adding this

ALTER TABLE items
ADD COLUMN price

Because a price column is already in there that’s why Im sure you had another script you were using and it made a price column, Check your items table click it if you see price well there is your answer!

If I open the inventory with f2 or open it at a shop pressing e, it gets stuck and I am unable to purchase anything or exit the menu. Only way to fix it is to relog to exit the menu. Then when you try it again, same thing occurs. Here’s a screenshot of what I mean, pressing escape does nothing neither does pressing f2

Anyone have any ideas? Happens with the stock configuration

I believe I am having the same error, cannot exit the menu, but I don’t see any errors when it occurs…

that looks sick but i cant figure out why i can only use bread and water

you need to add more code for usable item
default in esx_basicneeds is bread and water

I LOVE YOU!!! thankyou so much

Thanks for the fix :smiley: :smiley:

ok ill see that

so if i add more stuff in there it should work

thank you for your reply it helped me understand this error and it also helped with others

It’s probably because you have another function using F2 as well, I had this same problem and when I commented out the basic esx inventory F2 function it worked

Could have been the older ESX base we were on, I updated it this week so I will try it again soon

it works perfectly! i have only one problem… the buttons “give to” and “drop” is disable for items! for weapons work… do you know how i can fix it?

Hi there , ive installed everything and all works . The only issue im having is that store , when i drag something over to my inventory it doesnt give me the item nor is there any error ?

Hey there… I just added “inventoryhud - shops” in my server and i came up with a problem… I cant buy license from weaponshop so i cant open the weaponshop… any solution?
console gives me this error: SCRIPT ERROR: @esx_inventoryhud/server/main.lua:396: attempt to compare number with nil

Anyone know a fix for the duplicate cash entries? If I disable the one in the config (one with cash icon) it still shows one without an icon, I’d like to get it showing as cash with the icon but only one entry in the inventory