RX Garages Configuration

The settings are split across four files in config/, all open to edit:

FileWhat it holds
config.luaEverything on this page except private garages
garages.luaPublic garages, impound lots, and job garages. See Garages & Editor.
private.luaPrivate garage settings, the dealer, interiors, and the garages for sale
server.luaThe Discord webhook. It is server-only, so players never receive it.

Restart rx_garages after changing the configuration. Places created in the in-game editor are stored in the database and take priority over the config files.

General

Lua
Config.Locale = 'en'
Config.Debug = false
SettingDefaultBehaviour
Locale'en'en or tr, from locales/<name>.lua. A missing text falls back to English.
DebugfalsePrints what RX Garages decides and why in the F8 and server consoles.

Look

Lua
Config.UI = {
    Color = { 255, 255, 255 },
    Hold = 0.6,
    Menu = { Position = 'right', Sounds = true, Volume = 0.6 },
    Dialog = {},
    Hints = { Position = 'bottom' },
}
SettingDefaultBehaviour
Color{ 255, 255, 255 }The bar and key caps, as r, g, b.
Hold0.6Seconds a held key takes.
Menu.Position'right'right or left.
Menu.Soundstruetrue plays the soft RX sounds, 'game' plays GTA’s menu sounds, false plays none.
Menu.Volume0.6Volume of the RX sounds, from 0 to 1.
Hints.Position'bottom'Where key hints appear.

Menu and dialog button texts come from the locale; set Menu.Text or Dialog.Text to override them.

Integrations

Lua
Config.Interact = 'auto'
Config.InteractKey = 'E'
Config.Notify = 'auto'
Config.Keys = 'auto'
Config.Fuel = 'auto'
Config.Accounts = { 'bank', 'cash' }
SettingDefaultBehaviour
Interact'auto'The prompts at the garages: rx_interact, then ox_target, then qb-target, otherwise built-in key hints. Or name one: 'rx_interact', 'ox_target', 'qb-target', 'builtin'.
InteractKey'E'The key for built-in hints and every in-vehicle hint.
Notify'auto'RX Interact’s notifications when it runs, otherwise the framework’s. Or 'rx_interact', 'framework'.
Keys'auto'The vehicle key script: the first known one running, a resource name from server/bridge/keys.lua, or 'none'.
Fuel'auto'The fuel script: the first known one running, a resource name from client/bridge/vehicle.lua, or 'native'.
Accounts{ 'bank', 'cash' }Payments come from the first account that has enough.

Vehicles

Lua
Config.Vehicles = {
    Warp = true,
    WalkSpeed = 1.0,
    ApplyDamage = true,
    Persistent = true,
    NameMaxLength = 24,
    SharedPublic = false,
    Effect = { Enabled = true, Duration = 450, Blink = true },
    OnRestart = 'garage',
}
SettingDefaultBehaviour
WarptrueA vehicle taken out: true puts the player in the driver’s seat, 'walk' has them walk to it and get in, false leaves them standing by it.
WalkSpeed1.0With 'walk': 1.0 walks, 2.0 jogs.
ApplyDamagetrueRestores saved engine and body damage, including broken windows and doors.
PersistenttrueA vehicle taken out stays in the world when its driver leaves the server.
NameMaxLength24Longest name a player can give a vehicle.
SharedPublicfalsetrue lets any public garage give out any of the player’s parked vehicles.
EffectA soft fade in and out with the indicators blinking twice, like a remote lock. Enabled = false makes vehicles appear and disappear at once.
OnRestart'garage'Without persistence, what happens on start to vehicles that were out: 'garage', 'impound' (with Impound.LostFee), or 'keep'.

Persistence

Vehicles stay where they were left, through a restart, a crash, or the owner leaving the server.

Lua
Config.Persistence = {
    Enabled = true,
    SaveEvery = 30,
    MaxPerPlayer = 3,
    AbandonHours = 48,
    AbandonFee = 500,
    Lock = true,
}
SettingDefaultBehaviour
EnabledtrueTurns persistence on.
SaveEvery30Seconds between position saves. Only vehicles that moved are written; damage and fuel are saved when a driver gets out. A txAdmin scheduled restart and stopping the resource save everything once more.
MaxPerPlayer3Vehicles one player can have out. One more sends the oldest unused one back to its garage. 0 means no limit.
AbandonHours48A vehicle not driven for this long goes to the impound. 0 means never.
AbandonFee500The impound fee for an abandoned vehicle.
LocktrueVehicles put back after a restart are locked; the owner gets the keys again on joining.

Impound

Lua
Config.Impound = {
    AutoImpound = true,
    LostFee = 750,
    WreckCheck = 10,
    WreckGrace = 20,
    Jobs = { police = 0, sheriff = 0, mechanic = 0 },
    Command = 'impound',
    MaxFee = 50000,
    DefaultFee = 2500,
    MaxDistance = 6.0,
}
SettingDefaultBehaviour
AutoImpoundtrueA vehicle that was out and is gone (blown up, sunk, deleted, despawned) goes to the impound. false sends it back to its garage.
LostFee750The fee for an automatically impounded vehicle.
WreckCheck10Seconds between checks for wrecked vehicles.
WreckGrace20A vehicle that can no longer be used and that nobody is driving is impounded after this many seconds. A blown-up one goes at once.
Jobs{ police = 0, sheriff = 0, mechanic = 0 }Who can impound, as job name and lowest grade.
Command'impound'The command for the impound form. false leaves only the exports.
MaxFee, DefaultFee50000, 2500Limits for the fee an officer sets.
MaxDistance6.0Metres from the officer to the vehicle.

Job vehicles

Lua
Config.JobVehicles = {
    MaxOut = 1,
    Fuel = 100,
    ParkAnyJobGarage = true,
}
SettingDefaultBehaviour
MaxOut1Job vehicles one player can have out. One more removes the oldest one nobody is in.
Fuel100Fuel level they come out with.
ParkAnyJobGaragetruePark at any garage of the same job. false allows only the one it came from.

Transfers

Lua
Config.Transfer = {
    Player = true,
    PlayerDistance = 5.0,
    PlayerTimeout = 30,
    Garage = true,
    GarageFee = 250,
}
SettingDefaultBehaviour
PlayertrueGive a vehicle to a nearby player, who has to accept it.
PlayerDistance5.0Metres between the two players.
PlayerTimeout30Seconds the other player has to answer.
GaragetrueMove a parked vehicle to another garage.
GarageFee250The fee for moving it. 0 is free.

Private garages

In config/private.lua:

Lua
Config.Private = {
    Furniture = false,
    ShowForSale = true,
    DriveOutControl = 71,
    SellBack = 0.6,
    SellBackItems = 0.3,
    PlayerSale = true,
    SaleDistance = 4.0,
    SaleTimeout = 30,
    MaxSalePrice = 100000000,
    PayTo = 'bank',
    Partners = 4,
    Knock = true,
    KnockTimeout = 20,
}
SettingDefaultBehaviour
FurniturefalseFurniture sets at interior slots. Off for now while they are being reworked.
ShowForSaletrueGarages nobody owns show on the map in grey.
DriveOutControl71The control that drives out when sitting in a vehicle inside (W / accelerate).
SellBack0.6Share of the garage price the dealer pays back. 0 turns selling back off.
SellBackItems0.3Share of what the styles cost that the dealer pays back.
PlayerSaletrueSell to a player standing nearby at the seller’s price. Styles go with the garage.
SaleDistance, SaleTimeout4.0, 30Metres between seller and buyer, and seconds the buyer has to answer.
MaxSalePrice100000000Highest price a player can ask.
PayTo'bank'The account a sale’s money goes to.
Partners4Partners a garage can have. 0 turns partners off.
KnocktrueVisitors can knock at the door to be let in as guests.
KnockTimeout20Seconds the people inside have to answer.

What a player paid another player never counts toward what the dealer pays back. When a garage is sold or a partner’s key is taken, the vehicles inside can be collected from any public garage.

The dealer is set in Config.PrivateDealer (ped, position, scenario, and blip). The garages for sale and the interiors are described in Garages & Editor.

Admin and logs

Lua
Config.Admin = {
    Ace = 'command.rxgarages',
    Command = 'rxgarages:admin',
    PreviewModel = 'sultan',
}

Config.Logs = {
    Database = true,
}
SettingDefaultBehaviour
Admin.Ace'command.rxgarages'The ACE for the editor and the coordinate commands.
Admin.Command'rxgarages:admin'The editor command.
Admin.PreviewModel'sultan'The see-through vehicle shown at spawn points while editing.
Logs.DatabasetrueWrites transfers, impounds, and purchases to rx_garage_logs.

For Discord logs, set the webhook in config/server.lua:

Lua
ServerConfig.Webhook = ''
ServerConfig.WebhookName = 'rx_garages'

Adding a language

English and Turkish are included. Copy locales/en.lua to locales/<code>.lua, translate it, and set Config.Locale = '<code>'. Anything left untranslated falls back to English.