Hi everyone! Today I am releasing my first script!
This license enforcement script was made for my own roleplay server. The thought behind this is that players can not operate vehicles without a valid license and forces them that way to take a test/roleplay to get their license. Especially on our own server, where we didn’t want new people coming in and instantly flying civilian vehicles all over the place without any roleplay.
Players will not be able to start the vehicle type the license is required for without the license!
Features:
Ability to force players to have a license in order to use configured vehicles.
Configuration allows the enforcement of car, helicopter, boat, and plane licenses. Configurable to be enforced or ignored.
Optimized, 0.01 - 0.02 msec
Tested and used in combination with esx_license.
Customizability
Code is not obfuscated and can be modified.
User-friendly configuration file
Works perfectly fine without esx_license, as long as license type and identifier are saved somewhere in your database.
There is a small problem, when entering a vehicle of the police and ambulance, the same error occurs, to let you start, a normal car has to go and then get on the police and it lets you start
I’ve updated the script, make sure to check the config file, I’ve added an option to enable or disable it for emergency vehicles. The issue has been resolved as well.
You can use this with any license script, all you have to configure in the config file is what database table contains the licenses that are linked to a user and what the type of license is. Example is esx_license, which was used to build this script.