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_flyingschool
  3. Configuration

Full View config.lua

Config = {}
Config.DrawDistance = 50.0
Config.MaxErrors = 5
Config.TransitionMP3 = true
Config.FirstOtherLicense = false -- if you want the pilot's license to be preceded by a psychological test license granted by, for example, a policeman
Config.FirstOtherLicenseName = '' -- here is the name of the license that is to allow the pilot theory to start
Config.UsingMarker = true
Config.Ped = 's_m_m_pilot_01' -- ped who is sitting with you, remember that the picture will also have to be changed in the files
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("FLYING SCHOOL", message, 5500, "#27FF09", "fa-solid fa-plane")
        -- ESX.ShowNotification(message)
        -- QBCore.Functions.Notify(message, "success", 5500)
    elseif type == "info" then
        exports["vms_notify"]:Notification("FLYING SCHOOL", message, 5500, "#096FFF", "fa-solid fa-plane")
        -- ESX.ShowNotification(message)
        -- QBCore.Functions.Notify(message, "error", 5500)
    elseif type == "error" then
        exports["vms_notify"]:Notification("FLYING SCHOOL", message, 5500, "#FF0909", "fa-solid fa-plane")
        -- ESX.ShowNotification(message)
        -- QBCore.Functions.Notify(message, "error", 5500)
    end
end

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

Config.Blip = {
    Sprite = 758,
    Display = 4,
    Scale = 0.8,
    Colour = 32
}

Config.Exams = {
    ['plane'] = true,
    ['helicopter'] = true,
}

Config.Prices = {
    ["flying"] = 2000,
    ["flying_helicopter"] = 20000,
    ["flying_plane"] = 30000,
}

Config.VehicleModels = {
    ["flying_helicopter"] = 'maverick',
    ["flying_plane"] = 'vestra',
}

Config.Zones = {
    ["FlySchool"] = {
        Pos = vec(-1045.72, -2870.2, 34.4),
        Size = vec(1.5, 1.5, 1.0),
        Color = {125, 125, 255},
        Type = 22
    },
    ["flying_helicopter_spawn"] = {
        Pos = vec(-1178.4, -2846.0, 13.96),
        Heading = 330.68377685547,
    },
    ["flying_plane_spawn"] = {
        Pos = vec(-888.36, -3207.04, 13.96),
        Heading = 59.788063049316,
    },
    ["AfterPract"] = {
        Pos = vec(-1051.4, -2880.56, 30.36),
    }
}

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>',
    ['test_plane'] = 'Practical exam on the Plane <span style="color: green;">$%s</span>',
    ['test_helicopter'] = 'Practical exam on the Heli <span style="color: green;">$%s</span>',
    ['press_open_menu'] = 'Press ~INPUT_CONTEXT~ to open the menu',
    ['flying_school'] = 'Flying School',
    ['flying_test_complete'] = 'Practical test completed!',
    ['errors'] = 'Fail Counter: %s/%s',
    ['you_damaged_veh'] = 'Vehicle damaged.',
    ['firstLicense'] = 'You dont have psychological tests',
    ["teacherHeliText_1"] = 'Start the engine and rise to the top',
    ["teacherHeliText_28"] = 'Be careful not to fly over the prison',
    ["teacherHeliText_35"] = 'Land on Helipad',
    ["teacherPlaneText_1"] = 'Go up',
    ["teacherPlaneText_39"] = 'Land.',
    ["teacherPlaneText_41"] = 'Stop, pull back now.',
    ["teacherPlaneText_42"] = 'To the hangar.',
    ["teacherPlaneText_43"] = 'Go back on the air strip.',
    ["teacherPlaneText_46"] = 'Go up',
    ["already_passed"] = "You have already passed this.",
    ["not_passed_theory"] = "You don't have a passing theory",
}

Config.CheckPoints = {
    ['flying_helicopter_test'] = {
        [1] = {
            Pos = vec(-1178.36, -2845.92, 14.04),
            Action = function(vehicle)
                SendNUIMessage({openTeacher = true, pedMessage = Config.Texts['teacherHeliText_1']})
                PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', 0, 0, 1)
            end,
        },
        {...}
    },
    ['flying_plane_test'] = {
        [1] = {
            Pos = vec(-1115.8, -3076.44, 14.12),
            Action = function(vehicle)
                SendNUIMessage({openTeacher = true, pedMessage = Config.Texts['teacherPlaneText_1']})
                PlaySound(-1, 'RACE_PLACED', 'HUD_AWARDS', 0, 0, 1)
            end
        },
        {...}
    },
}

Last updated 5 months ago

Was this helpful?