ESX Multiple Weapon Licenses

Greetings,

I was wondering if someone might point me in the right direction, or help me alter the code of ESX_weapshop to include multiple weapon licenses. I am trying to set up a server that restricts automatic firearms to level 2, explosives to level 3 etc but still lets civilians use semi-automatics / shotguns at level 1 however I can’t seem to find anywhere how to segment these weapons into difference license levels. I have a feeling it’s going to require both altering the ESX_weapshop mod and also the database.

Any help would be appreciated, thanks.

Anyone have any ideas?

easy way would be to create a new database table with ID and rank, then make a script that will check the table and if person is not in table it say no weapon license found and not let them buy or use weapon but if the person id is found it would then check rank field and give the person the correct items I don’t code in ESX so other then this general idea I can not really help you, but am sure it should not be to hard.