So im having trouble creating a diiferent location for stuff like drills laptops hacking devices and stuff

It shows up but i cant open it
i keep getting these errors
Any help would be appreciated!!
So im having trouble creating a diiferent location for stuff like drills laptops hacking devices and stuff

Hey ![]()
When you added the items for your second black weapon shop did you make sure the name of the zone was the same as the name you put for your shop ? (BlackWeashop1)

Yes but thats not the problem the problem is it doesn’t let me open the second shop
I understand what the problem is, the question I was asking is because I try to understand where the issue comes from by analysing the code. It seems like there might be an issue with the shop name you put in the config and the ‘zone’ field in the database, check the synthax of both of them to be sure.
For example : In the config you called you shop “BlackWeashop1” if an weapon in your database have in synthax error in his ‘zone’ field like “BlackWeaponshop1” (instead of BlackWeashop1) it would trigger an error like that.
Check if u have in ur sql the same name as config. I’m supposing u are using esx_legacy
Pretty much what I told him ^^’’
Still getting the same error in the console ?
And did you inspect the synthax of the ‘zone’ fields of each item in the WeaponShop Table ?
Maybe send us your config file and an export of your WeaponShop databse table (we never know ^^)
I dont know its weird im not getting errors anymore is just not opening
I don’t think the normal esx_weaponshop allows for items to be used.
I recommend just using esx_shops, creating a new shop, and putting the items in that. If it puts a blip on the map and you don’t want it to, then lmk and I will assist you on taking the blip off. Because I am pretty sure esx_weaponshop (unless modified) does not allow items, but I am not 100% sure.
True ! I didn’t saw that the first time I checked the code (as I was focusing on the part that was creating the error) but indeed you are right, you only can sell weapons in the weaponshop according to the code.
That being said (according to the code) the shop menu should still be displayed (and display any object) it’s only when a purchase is made that the problems will began (as it uses the ‘addWeapon()’ function with the item name when a purchase is made).
If you send me a message with the code i can see what i can do for you