OrigenNetwork
Docs

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

VariableDefaultDescription
Config.DebugfalseEnable debug logging in the console
Config.Language'en'Locale file to load from locales/. Available: en

World loading

VariableDefaultDescription
Config.LoadDistance50.0Distance (units) at which a dealership starts loading
Config.UnloadDistance100.0Distance at which it unloads
Config.UpdateInterval1000Tick interval in milliseconds for position checks
Config.NPCInteractDistance3.0Radius 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

VariableDefaultDescription
Config.TestDrive.Timer60 * 1000Duration of a test drive in milliseconds (default: 60 s)
Config.TestDrive.plate'TESTDRIVE'License plate assigned to test drive vehicles

Vehicle purchase

VariableDefaultDescription
Config.VehiclePurchase.defaultGarage'garaje_central'Garage ID where purchased vehicles are saved
Config.VehiclePurchase.spawnVehicletrueSpawn vehicle at purchase point if true; only save to garage if false
Config.VehiclePurchase.giveKeysOnPurchasetrueAutomatically give vehicle keys after purchase
Config.VehiclePurchase.useOxLibPropstrueUse 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

VariableDefaultDescription
Config.FinancingConfig.enabledtrueEnable or disable the financing system globally
Config.FinancingConfig.timeUnit'days'Payment period unit: days, weeks, months, years
Config.FinancingConfig.maxPeriods12Maximum number of payment periods
Config.FinancingConfig.interestRate5Interest rate (%) applied per period
Config.FinancingConfig.payInitialPercentage30Initial down payment percentage. Set to 0 to disable
Config.FinancingConfig.cronExpression'*/10 * * * *'Cron expression for the payment check job
Config.FinancingConfig.maxDelayedPayments3Maximum 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

VariableDefaultDescription
Config.Camera.enableCollisionCheckfalseEnable 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)

VariableDefaultDescription
enabledtrueEnable or disable all Discord webhook logs
webhooks.purchaseFired when a player purchases a vehicle
webhooks.testdriveFired when a test drive starts
webhooks.financingFired when a financing contract is created or a payment is processed
webhooks.adminFired on admin actions (create, edit, delete dealership)
webhooks.stockFired when dealership stock is modified