[ESX] CD License enforcement

26b76ce699de8ac71acb8ebdff8262be0d195ce1

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.

Store

Screenshot

Config

Price: 5 USD + Tebex Tax
Buy CD License Enforcement

Dependencies

  • mysql-async
  • ESX
  • Optional (esx_license) - the script was built on top of this.

Optional
esx_license

Any feedback will be greatly appreciated!

7 Likes

Very cool idea, good work

2 Likes

Why is this happening?
(Screenshot - fd4bbd6369b55598b5e0fc882fe7d3f7 - Gyazo)

1 Like

I updated the script, you can redownload it using the same link you were provided. Let me know if you experience any further issues!

I will do it, thanks

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

1 Like

Thanks for letting me know! I’ll look at it tonight and give you a notice when I’ve updated the script. Thanks for reporting!

1 Like

Thanks

1 Like

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.

thx you

can you add function for whitelisting car which allowed to drive for DMV exam?

1 Like

That’s a good idea! I’ll see how I’m going to implement it but that’s a nice addition to add for sure, thank you!

I have been very busy lately so my apologies for the late response!

sure, glad to hear the respond from you

How does the person get the license?

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.

do you have this for QBcore ?

a good way to work around for bike/truck/planes/helis/boats that are part of a license test?