A customizable Driving License Exam script, supporting both ESX and QB frameworks. This script allows players to take theoretical and practical driving exams with configurable questions, vehicle routes, and missions.
-
Multi-framework Support: Works with both ESX and QB.
-
Theoretical and Practical Exams: Players must complete both a written and practical driving exam to obtain a license.
-
Customizable Exam Settings: Define the number of questions, right answers, pricing, and more.
-
Dynamic Practical Exam: Create missions and routes for players to follow during their practical driving test.
-
Flexible License Management: Choose to use your framework’s native license system or a custom database method.
-
Custom Notify: So you can use this notify system for your other scripts too
Exam Types
You can configure different types of exams such as car, motorcycle, truck, etc., each with its own settings.
Example of a Car Exam:
-
Theoretical Exam: Players must answer questions with a limited number of wrong answers allowed.
-
Practical Exam: Players must complete a driving route and follow instructions such as starting/stopping the engine or turning on the lights.
Below are key settings available in the config.lua
file for customization:
General Configuration
-
Framework: Set whether you are using ESX or QB framework.
-
Payment Method: Choose how players will pay for their exam (
money
orbank
). -
License Storage: Decide if you want to use the framework’s native license methods or a custom database method.
Exam Configuration
Each type of exam (e.g., car, motorcycle, truck) has customizable settings:
Example: Car Exam
-
Title: Set the title for the exam.
-
Prices: Define the prices for the theoretical and practical exams.
-
Image: Path to an image representing the exam type.
Theoretical Exam
-
Questions: Set up questions with multiple-choice answers. Each question has multiple possible answers, and you define which one is correct.
-
Maximum Wrongs: Set the maximum number of wrong answers allowed to pass the theoretical exam.
Practical Exam
-
Vehicle Spawning: Configure where and what type of vehicle will be spawned for the practical test.
-
Route: Define the route the player must drive during the exam.
-
Missions: Create specific tasks such as starting the engine, turning on/off the lights, etc., that players must complete to pass the exam.
-
Download and extract the script to your server’s
resources
folder. -
Add
ensure if-drivingschool
to your server.cfg. -
Configure the script in the
config/*.lua
files according to your server’s preferences.
Notify implementation:
-
- Types:
error
,success
,info
. - Example:
TriggerEvent('if-drivingschool:notify', {type = 'info', message = 'Message example'})
- Types:
- ESX
- QBCore
IF Bossmenu System (Same Design) you can get it free
Code is accessible | No |
Subscription-based | No |
Lines (approximately) | +1200 |
Requirements | ESX/QBCore |
Support | Yes |