ESX Driving School is a DMV script for ESX servers. Players take a theory test and then practical driving exams to get their car, motorcycle or truck licence.
Package contents
ESX Driving School provides a theory test and practical car, motorcycle and truck tests. Its configuration defines prices, test vehicles, speed limits, checkpoints and a maximum error count. The archive also includes interface assets, translations and SQL for licence records.
Features
- Theory test in an HTML interface with its own question file (
html/questions.js) - Practical tests for car (
blista), motorcycle (sanchez) and truck (mule3) - Prices per test: 500 for the theory test and 1500 for each practical test by default
- Speed limits for residential, town and freeway zones (50, 80 and 120) and a maximum of 5 errors
- Route with checkpoints and instructions such as stopping for pedestrians or at junctions
- Licence types:
dmv,drive,drive_bike,drive_truck
Requirements
- ESX (legacy shared object)
- esx_license
Compatibility and setup
The active code uses legacy ESX shared-object and esx_license events; the QBCore section is commented out and still calls ESX licence events. The SQL starts with a hard-coded database-selection statement. Remove that statement, review table conflicts, import only the required schema and test every payment and licence grant before use.
- Place the
BakiTelli_driveschoolfolder in your resources and addensure BakiTelli_driveschoolto your server.cfg. insert me.sqlstarts withUSE `qbtoesx`and createslicensesanduser_licenses; if esx_license already created these tables, only insert the four licence types.- Included language: English (
locales/en.lua,Config.Locale = 'en').
Security note
The server events for payment and licence grants take the price and licence type from the client without further checks. Add server-side validation before you use the script on a live server.