Configuration
Configuration of SCode Garage & Valet
All settings are in main/shared.lua. This file is not encrypted.
General
Config.Framework = "QBCore" -- QBCore or OLDQBCore
Config.FuelExport = "LegacyFuel" -- Name of your fuel script
Config.ExtraPlacePrice = 20
Config.Target = false -- QBCore only
Config.Blip = true
Config.BlipName = "Garaj"
Config.DepotBlipName = "Depo"
Config.MenuOpenKey = 38 -- E key
Config.DefaultFreePlace = 4
Config.fuelLiterPrice = 2
Config.VehicleTransferTime = 3500
Config.valePrice = 250
Config.VehicleKeySystem = true
Config.VehicleKeySystemTrigger = "vehiclekeys:client:SetOwner"
Config.ParkingZoneRadius = 5Option | Description |
|---|---|
| Resource that has the |
| Price of one extra parking slot. |
|
|
| Map blips for the garages and the valet booth, and their names. |
| Control ID used to open a garage ( |
| Free parking slots per garage for every player. |
| Price per litre when the valet or a transfer fills the tank. |
| Time in milliseconds until a transferred vehicle arrives in the new garage. |
| Fee for the valet service. |
| Gives the player the keys when a vehicle is taken out. |
| Client event of your key script. The default works with |
| How close (in metres) to the garage point a vehicle must be to park it. |
Valet
The valet booth, the NPC and where the vehicle is delivered:
Config.valeProp = "prop_parking_hut_2"
Config.valeCoords = vector3(-274.14, -1015.14, 30.38)
Config.valeCoordsH = 339.76
Config.valeSpawn = vector4(-310.83, -1028.51, 29.71, 344.81)
Config.valeModel = "s_m_y_valet_01"
Config.valeGotoCoord = vector3(-273.11, -1008.41, 29.71)
Config.valeGotoCoordH = 252.57valeCoords is the booth players walk up to, valeSpawn is where the valet starts driving and valeGotoCoord is where the vehicle is handed over.
Garages
Add as many garages as you like. The key is the name shown in the menu and also the value stored in the vehicle's garage column:
Config.Garages = {
["Phill Box"] = {
["coords"] = vector3(218.13, -793.61, 30.11)
},
["Del Perro"] = {
["coords"] = vector3(-921.57, -163.44, 41.19)
},
-- Motel, New Empire, El Rancho, Great Ocean, East Galileo, Pleto Bay,
-- Senora, Nilano, Route 68, Casino, Elgin, Bennys, Laguna
}Texts
All texts are in Config.Language: the interaction texts, target labels, success and error notifications and every label in the menu (UI). They are in Turkish by default. Translate them to the language of your server:
Config.Language = {
Interacts = {
OpenMenu = "[E] Garage",
OpenDepot = "[E] Impounded",
},
Targets = {
OpenMenu = "Garage",
OpenDepot = "Impounded Vehicles",
},
success = {
vehicle_parked = "Vehicle parked",
extra_place = "You bought an extra parking slot",
-- ...
},
error = {
not_owned = "This vehicle can't be parked in your garage",
not_enough = "You don't have enough money",
-- ...
},
UI = {
inside = "In garage",
outside = "Outside",
depot = "Impounded",
-- ...
}
}Last updated: December 6, 2026