[Release] [ESX] "Weashops+" (Weapon Grades)

I also had that problem, I then removed `id ', because it is not in my SQL licenses.
It is in my user_licenses, but it is automatically created there when you buy a license in the game.
It all works fine for me now.

Try This

USE `essentialmode`;

INSERT INTO `licenses` (`type`, `label`) VALUES
	('weapon', 'Weapon Level: One'),
	('weapon2', 'Weapon Level: Two'),
	('weapon3', 'Weapon Level: Three')	
;

forgive me for my english, i hope you understand it all

And LanceGood thanks for this beautiful Resource

1 Like

somehow i cant get blackmarket to work, only licence buy… and licence and licence…

When I purchase a weapon, where in my Database does it hold that information and show what weapons I own?

i try to import the sql file to database. but i got error like this

Error

SQL query:

``

USE `essentialmode`;

MySQL said: Documentation

#1044 - Access denied for user 'zap406602-1'@'%' to database 'essentialmode'

i am using phpMyadmin to manage database server. please help me…

Take off the Use essentialmode part of the SQL so it’s something like

INSERT INTO licenses (id, type, label) VALUES
(0, ‘weapon’, ‘Weapon Level: One’),
(1, ‘weapon2’, ‘Weapon Level: Two’),
(2, ‘weapon3’, ‘Weapon Level: Three’);

I had the same issue and I’m using zap. Every SQl you input that has this in just remove it and saved it before you try running/importing it. Or goto SQl instead of import of you database and copy what you need over. As said above you may need to remove the ID part if it’s still bringing up an error.

Hope this helps.

how do i add ammo to the shop?

1 Like

How do I disable license for Black Money shop

Is there a way to make it to where you can buy more then just one gun?

Yes add it in config.lua you can get the weapon name from here List of Weapon Spawn names (After Hours)

Sorry I didn’t mean like more variety of weapons. Whenever I try to buy multiples of the same weapon it tells me it’s already owned. How could I make it to where you’re able to buy more then 1 of the same weapons

for me to get this to work is to restart the resource everytime I restart my server

This is the answer for ESX User’s

USE essentialmode;

INSERT INTO licenses (type, label) VALUES
(‘weapon’, ‘Weapon Level: One’),
(‘weapon2’, ‘Weapon Level: Two’),
(‘weapon3’, ‘Weapon Level: Three’);

anyone know how to make the illegal store not check for licenses

Did you ever figure it out?

hey man the script is cool but im getting an error when i try to buy a license and no money gets removed and i dont get a license the menu closes and nothing happens heres the error https://prnt.sc/sox7gu

nvm i fixed it it was because of the new update from es_extended you have to update line 22 and line 51

line 22 has to look like this

if xPlayer.getMoney() >= price then

and line 51 has to look like this

else if xPlayer.getMoney() >= price then

Get this error #1054 - Unknown column ‘id’ in ‘field list’

I get this when I try an purchase a license, no money is taken and no license is aquired

SCRIPT ERROR: @esx-weashopsplus/server/main.lua:22: attempt to compare number with nil

this script come with clips? for reload the weapons? if not any help with that?

Go two messages above your message.