vms* store - Docs
Purchase Asset
  • Welcome
  • Official Store
  • Discord
  • Helpful
    • Basic Server Knowledge
      • How to import SQL to database?
      • How to update server artifacts?
    • General Issues
    • Prepared Resources
  • ASSETS
    • vms_notifyV2
      • Installation
      • FAQ
      • Guides
        • Text Formatting
        • Swap in framework
      • Developer API
        • Client Exports
        • Server Events
      • Configuration Files
        • config.lua
        • config.js
    • vms_bossmenu
      • Installation
      • Compatibility
      • FAQ
      • Guides
        • Creating job2 on ESX
        • Paychecks Integration
      • Developer API
        • Client Exports
        • Client Events
        • Server Exports
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
    • vms_cityhall
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Guides
        • License Revocation
        • Personal Taxes Integration
        • Business Taxes Integration
        • Paychecks Integration
        • Add SSN Generation
        • Generate SSN for Players
        • Add VIN Generation
        • Generate VIN for Vehicles
      • Developer API
        • Client Exports
        • Server Exports
        • Commands
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.shared.lua
        • config.clerks.lua
        • config.taxes.lua
        • config.js
    • vms_documentsV2
      • Installation
      • FAQ
      • Common Errors
      • Guides
        • Add SSN Generation
        • Generate SSN for Players
        • Creating New Document
        • Driving School Integration
      • Developer API
        • Client Exports
        • Server Exports
        • Commands
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • metadata.js
    • vms_garagesV2
      • Installation
      • Compatibility
        • Housings
          • qs-housing
          • esx_property
          • bcs_housing
        • Phones
          • yflip-phone
          • qs-smartphone-pro
        • Other
          • VehicleDeformation
          • kq_wheeldamage
      • FAQ
      • Common Errors
      • Guides
        • Interior Stuck Prevention
        • Registering House Garage
      • Developer API
        • Client Exports
        • Server Exports
        • Server Events
        • Commands
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.garages.lua
        • config.management.lua
        • config.parkingcreator.lua
        • config.js
    • vms_houserobberies
      • Installation
      • FAQ
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.items.lua
        • config.interiors.lua
        • config.houseslist.lua
        • config.configurator.lua
    • vms_vehicleshopV2
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Guides
        • Adjusting Required Licenses
        • Adjusting orderprice
        • Photos Tool
      • Developer API
        • Client Exports
        • Client Events
        • Server Exports
        • Commands
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.management.lua
        • config.showroom.lua
        • config.js
    • vms_stores
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.camera.lua
        • config.robbery.lua
        • config.storemanage.lua
        • config.js
    • vms_reports
      • Installation
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.js
    • vms_tuning
      • Installation
      • FAQ
      • Common Errors
      • Guides
        • Garage Integration
          • jg-advancedgarages
        • Understanding Prices
        • Using whitelist & blacklist
        • Fix tuning parts names from NULL
        • Paychecks from the built-in balance
      • Developer API
        • Client Exports
        • Server Exports
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.vehicles.lua
        • config.tuningmenu.lua
        • config.installationparts.lua
        • config.custommods.lua
        • config.missions.lua
    • vms_gym
      • Installation
      • FAQ
      • Common Errors
      • Developer API
        • Client Exports
        • Server Exports
        • Server Events
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.management.lua
    • vms_hud
      • Installation
      • FAQ
      • Common Errors
      • Developer API
        • Client Exports
        • Client Events
        • Server Events
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.js
    • vms_spawnselector
      • Installation
      • Compatibility
        • vms_multichars
        • esx_multicharacter
        • esx_identity
        • qb-multicharacter
      • FAQ
      • Developer API
        • Client Exports
        • Server Events
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
    • vms_guidebook
      • Installation
      • Guides
        • Text Formating
      • Developer API
        • Client Exports
        • Client Events
        • Server Events
      • Configuration Files
        • config.lua
        • pages.js
    • vms_coinshop
      • Installation
      • Configuration Files
        • config.lua
    • vms_vehicleshop
      • Installation
      • Configuration Files
        • config.lua
    • vms_gangmissions
      • Installation
      • Guides
        • Connection to NPCTALK
      • Configuration Files
        • config.lua
    • vms_charcreator
      • Installation
      • Compatibility
        • vms_multichars
        • esx_multicharacter
        • esx_identity
        • qb-multicharacter
        • ZSX_Multicharacter
        • renzu_multicharacter
      • FAQ
      • Developer API
        • Client Events
        • Server Events
      • Configuration Files
        • config.lua
    • vms_clothestore
      • Installation
      • Compatibilty
      • Common Errors
      • Developer API
        • Client Exports
        • Client Events
        • Server Events
      • Configuration Files
        • config.lua
        • config.prices.lua
        • config.js
    • vms_multichars
      • Installation
      • Compatibilty
      • Common Errors
      • Developer API
        • Commands
      • Configuration Files
        • config.lua
        • config_client.lua
        • config_server.lua
        • config_commands.lua
    • vms_identity
      • Installation
      • FAQ
      • Common Errors
      • Configuration Files
        • config.lua
    • vms_barber
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.management.lua
    • vms_tattooshop
      • Installation
      • Compatibility
      • FAQ
      • Common Errors
      • Guides
        • New ADD-ON Tattoos
      • Developer API
        • Client Exports
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.management.lua
        • config.tattoos.lua
    • vms_driveschoolV2
      • Installation
      • Compatibility
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
    • vms_boatschoolV2
      • Installation
      • Compatibility
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.routes.lua
    • vms_flightschoolV2
      • Installation
      • Compatibility
      • Common Errors
      • Configuration Files
        • config.lua
        • config.client.lua
        • config.server.lua
        • config.routes.lua
    • vms_documents
      • Installation
      • Guides
        • Adding to radialmenu
        • Usage of documents
        • Adding new documents
      • Configuration Files
        • config.lua
    • vms_anims
      • Installation
      • Guides
        • Adding animations
        • Adding more binds
      • Developer API
        • Client Exports
      • Configuration Files
        • config.lua
        • animations.lua
        • keybinds.lua
    • vms_weaponshop
      • Installation
      • Configuration Files
        • config.lua
    • vms_notify
      • Installation
      • Guides
        • Implementation
        • Replace core notifications
Powered by GitBook
On this page

Was this helpful?

  1. outdated
  2. vms_drivingschool
  3. Configuration

Full View config.lua

Config = {}
Config.DrawDistance = 50.0
Config.MaxErrors = 5
Config.SpeedMultiplier = 3.6 -- 3.6 = km/h | 2.2 = mp/h
Config.Ped = 'a_f_y_business_03'
Config.TransitionMP3 = true
Config.UsingMarker = true
Config.LicenseOnItem = false -- [ONLY QB-Core] if you want to use an item license set 'item_name' if not, set false
Config.ESXMenuDefault_position = "center"
Config.ShowNextPoint = true -- then the player sees where the next point will be so that he knows in advance what maneuver he will have to perform

Config.Core = "ESX" -- ESX / QB-Core
Config.CoreDefine = "" -- if you use old ESX you can here define core by trigger "esx:getSharedObject"
Config.CoreExport = function()
	return exports["es_extended"]:getSharedObject()
	-- return exports['qb-core']:GetCoreObject()
end

Config.TextUI = {
	Enabled = false, -- if you want to use TextUI, set to true
	Open = function()
		exports["interact"]:Open("E", "Open")
	end,
	Close = function()
		exports["interact"]:Close()
	end
}

Config.Notification = function(message, type)
	if type == "success" then
		exports["vms_notify"]:Notification("DRIVING SCHOOL", message, 5500, "#27FF09", "fa-solid fa-car")
		-- ESX.ShowNotification(message)
		-- QBCore.Functions.Notify(message, "success", 5500)
	elseif type == "info" then
		exports["vms_notify"]:Notification("DRIVING SCHOOL", message, 5500, "#096FFF", "fa-solid fa-car")
		-- ESX.ShowNotification(message)
		-- QBCore.Functions.Notify(message, "error", 5500)
	elseif type == "error" then
		exports["vms_notify"]:Notification("DRIVING SCHOOL", message, 5500, "#FF0909", "fa-solid fa-car")
		-- ESX.ShowNotification(message)
		-- QBCore.Functions.Notify(message, "error", 5500)
	end
end

Config.Prices = {
	["dmv"] = 2000,
	["drive"] = 6000,
	["drive_bike"] = 5000,
	["drive_truck"] = 3500
}

Config.VehicleModels = {
	drive = "blista",
	drive_bike = "sanchez",
	drive_truck = "mule3"
}

Config.SpeedLimits = {
	["residence"] = 50,
	["town"] = 80,
	["freeway"] = 120
}

Config.Questions = {
	['QuestionsCount'] = 11,
	['QuestionToAnswer'] = 11,
	['NeedAnswersToPass'] = 9,
}

Config.Blip = {
	["Sprite"] = 778,
	["Display"] = 4,
	["Scale"] = 0.8,
	["Colour"] = 66
}

Config.Zones = {
	["DMVSchool"] = {
		Pos = vec(-905.24, -2337.72, 6.72),
		Size = vec(1.5, 1.5, 1.0),
		Color = {0, 255, 0},
		Type = 22
	},
	["VehicleSpawnPoint"] = {
		Pos = vec(-919.76, -2327.48, 6.72),
		Heading = 330.61929321289,
		Size = vec(1.5, 1.5, 1.0),
		Color = {r = 250, g = 250, b = 0},
		Type = -1
	}
}

Config.Texts = {
	["passed_test"] = "You passed the exam, congratulations!",
	["failed_test"] = "You failed the exam, good luck next time!",
	["nomoney"] = "You don’t have enough money.",
	["theory_test"] = 'Theoretical examination <span style="color: green;">$%s</span>',
	["road_test_bike"] = 'Practical exam on the Bike <span style="color: green;">$%s</span>',
	["road_test_car"] = 'Practical exam on the Car <span style="color: green;">$%s</span>',
	["road_test_truck"] = 'Practical exam on the Truck <span style="color: green;">$%s</span>',
	["press_open_menu"] = "Press ~INPUT_CONTEXT~ to open the menu",
	["driving_school"] = "Driving School",
	["driving_test_complete"] = "Practical test completed!",
	["driving_too_fast"] = "Exceeding speed!, Speed limit is %s km/h!",
	["errors"] = "Fail Counter: %s/%s",
	["you_damaged_veh"] = "Vehicle damaged.",
	["teacherText_1"] = "Get to the point! Speed limit is %s km/h",
	["teacherText_2.0"] = "Stop, look to the left. Speed limit is %s km/h",
	["teacherText_2.1"] = "All right, turn right and follow the line.",
	["teacherText_3.0"] = "STOP, pedestrian crossing",
	["teacherText_3.1"] = "Great, keep going.",
	["teacherText_4"] = "Watch the traffic and turn left!",
	["teacherText_5"] = "Please, turn left.",
	["teacherText_7"] = "Continue the journey",
	["teacherText_8.0"] = "Stop, let the passing vehicles through!",
	["teacherText_8.1"] = "Please, turn right.",
	["teacherText_9"] = "Go to the next point!",
	["teacherText_11"] = "Please, turn right.",
	["teacherText_12"] = "Turn right again and onto the highway.",
	["teacherText_13"] = "Speed limit %s km/h",
	["teacherText_14"] = "Go to the next point!",
	["teacherText_15"] = "Go to the next point!",
	["teacherText_16"] = "Okay, you’re gonna turn right soon, slow down.",
	["teacherText_17"] = "Turn right. Speed limit is %s km/h",
	["teacherText_18"] = "We’ll turn around and come back.",
	["teacherText_26.0"] = "Wait till the vehicles pass, then we’ll go left!",
	["teacherText_26.1"] = "Speed limit is %s km/h",
	["teacherText_27"] = "Come on, come on or else they’re going to enter in our ass!",
	["teacherText_31"] = "When you come to town, be careful! Speed limit is %s km/h",
	["teacherText_40"] = "Please, turn left.",
	["teacherText_41"] = "Please, turn left.",
	["teacherText_42"] = "I’m impressed, but don’t forget to stop!",
	["already_passed"] = "You have already passed this.",
	["not_passed_theory"] = "You don't have a passing theory"
}

Config.CheckPoints = {
	{
		Pos = vec(-919.76, -2327.48, 6.72),
		Action = function(playerPed, vehicle, setCurrentZoneType)
			SendNUIMessage(
				{
					openTeacher = true,
					pedMessage = string.format(Config.Texts["teacherText_1"], Config.SpeedLimits["residence"])
				}
			)
		end
	},
	{...}
}

Last updated 4 months ago

Was this helpful?