Full View config.lua

Config = {}
Config.DrawDistance = 50.0
Config.MaxErrors = 5
Config.TransitionMP3 = true
Config.Ped = 'a_m_y_epsilon_01'
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.VehicleModels = 'squalo'

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("BOATING SCHOOL", message, 5500, "#27FF09", "fa-solid fa-ship")
		-- ESX.ShowNotification(message)
		-- QBCore.Functions.Notify(message, "success", 5500)
	elseif type == "info" then
		exports["vms_notify"]:Notification("BOATING SCHOOL", message, 5500, "#096FFF", "fa-solid fa-ship")
		-- ESX.ShowNotification(message)
		-- QBCore.Functions.Notify(message, "error", 5500)
	elseif type == "error" then
		exports["vms_notify"]:Notification("BOATING SCHOOL", message, 5500, "#FF0909", "fa-solid fa-ship")
		-- ESX.ShowNotification(message)
		-- QBCore.Functions.Notify(message, "error", 5500)
	end
end

Config.Questions = {
	['QuestionsCount'] = 16,
	['QuestionToAnswer'] = 16,
	['NeedAnswersToPass'] = 12,
}

Config.Blip = {
	['Sprite'] = 770,
	['Display'] = 4,
	['Scale'] = 0.8,
	['Colour'] = 3
}

Config.Prices = {
	["boat"] = 2000,
  	["drive_boat"] = 6000,
}

Config.Zones = {
	["BOAT_School"] = {
		Pos = vec(-815.96, -1346.16, 5.16),
		Size = vec(1.5, 1.5, 1.0),
		Color = {125, 125, 255},
		Type = 22
	},
	["BoatSpawnPoint"] = {
		Pos = vec(-846.84, -1362.24, 1.52),
		Heading = 112.9951171875,
	},
	["AfterPract"] = {
		Pos = vec(-821.48, -1347.0, 5.16),
	}
}

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_boat'] = 'Practical exam on the Boat <span style="color: green;">$%s</span>',
	['press_open_menu'] = 'Press ~INPUT_CONTEXT~ to open the menu',
	['boating_school'] = 'Boating School',
	['boating_test_complete'] = 'Practical test completed!',
	['errors'] = 'Fail Counter: %s/%s',
	['you_damaged_veh'] = 'Vehicle damaged.',
	["teacherText_1"] = 'Get to the point!',
	["teacherText_2.0"] = 'Stop, look to the left.',
	["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"] = '',
	["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.',
	["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"] = '',
	["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!',
	["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 = {
  { --[ 1 ]
    Pos = vec(-846.84, -1362.24, 1.52),
    Action = function()
      SendNUIMessage({
        openTeacher = true,
        pedMessage = Config.Texts['teacherText_1.0']
      })
      PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', 0, 0, 1)
      FreezeEntityPosition(vehicle, true)
      Citizen.Wait(6000)
      FreezeEntityPosition(vehicle, false)
      SendNUIMessage({
        openTeacher = true,
        pedMessage = Config.Texts['teacherText_1.1']
      })
    end
  },
  {...}
}

Last updated