βš™οΈConfiguration

Configuration for KS-Garage

πŸ”§ Framework Settings

Config.Framework = 'esx' -- Options: 'esx', 'qb', 'qbx'

🌍 Locale

Config.Locale = 'en'

πŸ› οΈ Admin Commands

Config.ConsoleOnlyGiveCar = { "admin", "god" }
Config.ConsoleOnlyGiveEli = { "admin", "god" }
Config.ConsoleOnlyGiveBoat = { "admin", "god" }
Config.ConsoleOnlyGivePlane = { "admin", "god" }

Command names:

Config.GivecarCommand = 'givecar'
Config.GiveEliCommand = 'giveeli'
Config.GiveBoatCommand = 'giveboat'
Config.GivePlaneCommand = 'giveplane'

🚘 Vehicle Settings

Config.PlatePrefix = "KKS" -- Max 4 characters
Config.CarKeyItem = 'carkey' -- Item given when vehicle is spawned

πŸ”” Notification System

Config.NotificationSystem = 'ox'

πŸ’¬ Text UI Functions

Config.TextUiShow = function(key, message)
    exports["KS-Textui"]:KSTextUI(key, message)
end

Config.TextUiHide = function()
    exports["KS-Textui"]:KSHideTextUI()
end

our textui is for free on our tebex

Logo displayed in the garage UI.

Config.LogoURL = 'https://r2.fivemanage.com/yourlogo.png'

🏁 Default Garage IDs

Config.BitCarGarage = "LegionGarage"
Config.BitEliGarage = "LegionGarageEli"
Config.BitBoatGarage = "LegionGarageBoat"
Config.BitPlaneGarage = "LegionGaragePlane"

πŸ“¦ Impound System

Each entry in Config.Impound defines a vehicle impound zone:

  • type: car, boat, plane,eli

  • unimpoundcost: price to retrieve the vehicle

  • blip & marker: coordinates and visuals

  • spawnPoints: where the vehicle will be spawned

πŸ…ΏοΈ Garage Definitions

Each garage in Config.Garage includes:

  • name, coords, coordspre.

  • type: garage, hangar, dock, plane, impound

  • maxSlots: number of vehicle slots available

  • job: (optional) restrict to job

  • spawnPoints: where vehicles spawn

  • blip: show on map with icon and color

Item for Car Key

['carkey'] = {
		label = 'Chiavi Auto',
		weight = 0,
		stack = false, 
		close = true,
    	keep = true, 
		server = {
			export = 'KS-Garage.toggleVehicleLock',
		},
	},

the key is used to open and close the car

Last updated