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

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 5 months ago

Was this helpful?