Last updated
Last updated
Config, Blips, Lang, Noti, Vehicles, TheoricalInstructor, PracticeInstructor, TheoricalUserPosition, Receptionist = {},
{}, {}, {}, {}, {}, {}, {}, {}
Config, Blips, Lang, Noti, Vehicles, TheoricalInstructor, PracticeInstructor, TheoricalUserPosition, Receptionist = {},
{}, {}, {}, {}, {}, {}, {}, {}
-- Trigger to open menu:
-- TriggerClientEvent("bit-flightschool:openMenu")
-- Trigger to delete license:
-- TriggerServerEvent("bit-flightschool:deleteLicense", playerID, license)
-- a88888b. .88888. 888888ba 88888888b dP .88888. dP dP 888888ba .d888888 d888888P dP .88888. 888888ba
-- d8' `88 d8' `8b 88 `8b 88 88 d8' `88 88 88 88 `8b d8' 88 88 88 d8' `8b 88 `8b
-- 88 88 88 88 88 a88aaaa 88 88 88 88 a88aaaa8P' 88aaaaa88a 88 88 88 88 88 88
-- 88 88 88 88 88 88 88 88 YP88 88 88 88 `8b. 88 88 88 88 88 88 88 88
-- Y8. .88 Y8. .8P 88 88 88 88 Y8. .88 Y8. .8P 88 88 88 88 88 88 Y8. .8P 88 88
-- Y88888P' `8888P' dP dP dP dP `88888' `Y88888P' dP dP 88 88 dP dP `8888P' dP dP
-- Use "esx" or "qb"
Config.Framework = "qb"
-- If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
Config.ESXExport = ""
-- Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
Config.Core = "qb-core"
-- oxmysql, mysql-async or ghmattisql
Config.Mysql = "oxmysql"
-- A license price
Config.licenseHelicopterPrice = 2500
-- B license price
Config.licensePlanePrice = 5500
-- Number of questions for the theoretical test
Config.theoricalTotalQuestions = 9
-- Answers needed to pass the theory test
Config.correctAnswersNeeded = 5
-- Helicopter license name in the database
Config.licenseNameHelicopter = 'helicopter'
-- Plane license name in the database
Config.licenseNamePlane = 'plane'
-- Instructor audio language. Change it or replace the files in the audio folder
Config.TTSLanguage = 'EN'
-- Maximum number of errors that can be made in the practical test
Config.MaxErrorsPractice = 5
-- Font used in alerts. Set to 0 if your language is Chinese
Config.alertTextFont = 4
-- Set to true if you want to use ESX.DeleteVehicle or QBCore.Functions.DeleteVehicle. If set to false, the native function will be used.
Config.UseEsxQBDeleteVehicle = false
-- Check license in the database
Config.checkDBLicense = true
-- Teleport the user to the driving school if he fails the practical test
Config.teleportIfFails = true
-- Coordinates to teleport the user if fails the practical test
Config.teleportIfFailsCoord = vector3(-1187.21, -2423.52, 20.26)
-- Check if there is a vehicle at spawn point
Config.checkspawnpoint = true
-- Account to which you want the money to be charged
Config.accountToRemoveMoney = "bank"
-- Set to true if you want users to have to repeat the theory for each license
Config.repeatTheorical = true
-- dP dP 88888888b dP dP .d88888b
-- 88 .d8' 88 Y8. .8P 88. "'
-- 88aaa8P' a88aaaa Y8aa8P `Y88888b.
-- 88 `8b. 88 88 `8b
-- 88 88 88 88 d8' .8P
-- dP dP 88888888P dP Y88888P
Config.useKeys = true
function addKeys(vehicle)
-- Insert here your trigger. EX:
-- TriggerServerEvent("keyscar:server:addKey", GetVehicleNumberPlateText(vehicle), false)
end
function removeKeys(vehicle, plate)
if vehicle ~= 0 and plate ~= nil then
-- Insert here your trigger
end
end
-- dP dP 88888888b dP dP dP a88888b. dP 88888888b .d88888b
-- 88 88 88 88 88 88 d8' `88 88 88 88. "'
-- 88 .8P a88aaaa 88aaaaa88a 88 88 88 a88aaaa `Y88888b.
-- 88 d8' 88 88 88 88 88 88 88 `8b
-- 88 .d8P 88 88 88 88 Y8. .88 88 88 d8' .8P
-- 888888' 88888888P dP dP dP Y88888P' 88888888P 88888888P Y88888P
Vehicles.helicopter = 'supervolito'
Vehicles.plane = 'velum2'
Vehicles.spawn = {
x = -1118.94,
y = -2398.03,
z = 13.95,
heading = 145.69
}
-- 88888888b dP dP 88888888b dP
-- 88 88 88 88 88
-- a88aaaa 88 88 a88aaaa 88
-- 88 88 88 88 88
-- 88 Y8. .8P 88 88
-- dP `Y88888P' 88888888P 88888888P
-- set to true if you want to use a custom fuel script
Config.useCustomFuel = false
function setFuel(vehicle)
end
-- 888888ba 888888ba a88888b.
-- 88 `8b 88 `8b d8' `88
-- 88 88 a88aaaa8P' 88
-- 88 88 88 88
-- 88 88 88 Y8. .88
-- dP dP dP Y88888P'
Receptionist.npc = 's_f_y_airhostess_01'
Receptionist.x = -1189.84
Receptionist.y = -2425.32
Receptionist.z = 20.26
Receptionist.heading = 331.72
PracticeInstructor.use = true