SCode StudiosSCodeDocs
Tebex Store

Configuration

Configuration of SCode Garage & Valet

All settings are in main/shared.lua. This file is not encrypted.

General

Lua
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 = 5

Option

Description

FuelExport

Resource that has the GetFuel / SetFuel exports, for example LegacyFuel, ps-fuel or cdn-fuel.

ExtraPlacePrice

Price of one extra parking slot.

Target

true to open garages and the valet with qb-target, false for E with on-screen text.

Blip, BlipName, DepotBlipName

Map blips for the garages and the valet booth, and their names.

MenuOpenKey

Control ID used to open a garage (38 is E).

DefaultFreePlace

Free parking slots per garage for every player.

fuelLiterPrice

Price per litre when the valet or a transfer fills the tank.

VehicleTransferTime

Time in milliseconds until a transferred vehicle arrives in the new garage.

valePrice

Fee for the valet service.

VehicleKeySystem

Gives the player the keys when a vehicle is taken out.

VehicleKeySystemTrigger

Client event of your key script. The default works with qb-vehiclekeys.

ParkingZoneRadius

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:

Lua
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.57

valeCoords 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:

Lua
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:

Lua
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