Configuration · origen_dealerships
All configuration lives in the config/ folder. Files in this folder are not escrowed and can be freely edited.
General (config/general.lua)
Debug & language
| Variable | Default | Description |
|---|---|---|
Config.Debug | false | Enable debug logging in the console |
Config.Language | 'en' | Locale file to load from locales/. Available: en |
World loading
| Variable | Default | Description |
|---|---|---|
Config.LoadDistance | 50.0 | Distance (units) at which a dealership starts loading |
Config.UnloadDistance | 100.0 | Distance at which it unloads |
Config.UpdateInterval | 1000 | Tick interval in milliseconds for position checks |
Config.NPCInteractDistance | 3.0 | Radius to trigger NPC interaction |
Setup menu
lua
Config.SetupMenu = {
vehiclePlacing = 'adder' -- Preview model shown when placing a new dealership
}Dealership menu
lua
Config.DealershipMenu = {
defaultVehicleModel = 'sultan' -- Fallback model for the 3D preview camera
}Test drive
| Variable | Default | Description |
|---|---|---|
Config.TestDrive.Timer | 60 * 1000 | Duration of a test drive in milliseconds (default: 60 s) |
Config.TestDrive.plate | 'TESTDRIVE' | License plate assigned to test drive vehicles |
Vehicle purchase
| Variable | Default | Description |
|---|---|---|
Config.VehiclePurchase.defaultGarage | 'garaje_central' | Garage ID where purchased vehicles are saved |
Config.VehiclePurchase.spawnVehicle | true | Spawn vehicle at purchase point if true; only save to garage if false |
Config.VehiclePurchase.giveKeysOnPurchase | true | Automatically give vehicle keys after purchase |
Config.VehiclePurchase.useOxLibProps | true | Use lib.getVehicleProperties / lib.setVehicleProperties for vehicle mods |
defaultGarage must match the garage ID registered in your garage resource. For origen_garages, use the exact id field of the garage entry.
Map markers & blips
lua
Config.Markers = {
blips = {
sprite = 524, -- GTA blip sprite ID
color = 5, -- GTA blip color ID
scale = 0.7, -- Blip scale
name = "Dealership", -- Label shown on the map
}
}Financing
| Variable | Default | Description |
|---|---|---|
Config.FinancingConfig.enabled | true | Enable or disable the financing system globally |
Config.FinancingConfig.timeUnit | 'days' | Payment period unit: days, weeks, months, years |
Config.FinancingConfig.maxPeriods | 12 | Maximum number of payment periods |
Config.FinancingConfig.interestRate | 5 | Interest rate (%) applied per period |
Config.FinancingConfig.payInitialPercentage | 30 | Initial down payment percentage. Set to 0 to disable |
Config.FinancingConfig.cronExpression | '*/10 * * * *' | Cron expression for the payment check job |
Config.FinancingConfig.maxDelayedPayments | 3 | Maximum overdue payments before contract enforcement |
The cron expression requires a valid format supported by ox_lib's scheduling system. The default runs every 10 minutes.
Camera
| Variable | Default | Description |
|---|---|---|
Config.Camera.enableCollisionCheck | false | Enable camera collision detection when inspecting vehicles |
Admin groups
Defines which permission groups are treated as admins per framework. Modify if your server uses custom group names.
lua
Config.AdminGroups = {
['qb-core'] = { 'admin', 'god', 'superadmin' },
['esx'] = { 'admin', 'superadmin', 'mod' },
['qbx'] = { 'admin', 'god', 'superadmin' },
}Logs (config/logs.lua)
| Variable | Default | Description |
|---|---|---|
enabled | true | Enable or disable all Discord webhook logs |
webhooks.purchase | — | Fired when a player purchases a vehicle |
webhooks.testdrive | — | Fired when a test drive starts |
webhooks.financing | — | Fired when a financing contract is created or a payment is processed |
webhooks.admin | — | Fired on admin actions (create, edit, delete dealership) |
webhooks.stock | — | Fired when dealership stock is modified |