Skip to content
ESX Addons
DMV School

esx_dmvschool

https://github.com/esx-framework/esx_dmvschool

Tired of waiting for your local DMV to be free so you can get your driving licence? well today is your day! This amazingly Realistic DMV schools allows you to sit a tough theory test and a Rage fueled , high-stakes Practial Driving Test for Cars, motocycles and Trucks, all from the comfort of FiveM!

Configuration

  • Config.DrawDistance
    • type: float
    • default: 10.0
    • description: Draw distance for the marker
  • Config.MaxErrors
    • type: integer
    • default: 3
    • description: Maximum errors allowed in the practical test
  • Config.SpeedMultiplier
    • type: float
    • default: 3.6
    • description: Speed multiplier (3.6 = km/h, 2.23694 = mph)
  • Config.SpeedingErrorDelay
    • type: integer
    • default: 5000
    • description: Delay in ms before a speeding error is counted
  • Config.Prices
    • type: table
    • description: Prices for each test
    • key: test name (string)
    • value: price (integer)
  • Config.VehicleModels
    • type: table
    • description: Vehicle models for each test
    • key: test name (string)
    • value: vehicle model (string)
  • Config.SpeedLimits
    • type: table
    • description: Speed limits for each test
    • key: area (string)
    • value: speed limit (integer)
  • Config.Zones
    • type: table
    • description: Marker zones
    • layout:
Config.Zones = {
	ZoneName = {
		Pos   = {x = 239.471, y = -1380.960, z = 32.741},
		Size  = {x = 1.5, y = 1.5, z = 1.0},
		Color = {r = 204, g = 204, b = 0},
		Type  = 1
	},
}
  • Config.CheckPoints
    • type: table
    • description: Checkpoints for the practical test
    • layout:
Config.CheckPoints = {
	{
		Pos = {x = 255.139, y = -1400.731, z = 29.537},
		Action = function(playerPed, vehicle, setCurrentZoneType)
			-- Do Action
		end
	},
}