OrigenNetwork
Docs

Configuration · origen_garages

Configuration is split across two files inside config/:

  • config/main.lua — general settings, framework, permissions, DB mappings
  • config/interiors.lua — interior shells and IPL definitions

config/main.lua

General

VariableDefaultDescription
Config.DebugfalsePrint debug messages to the console
Config.Language'en'UI language — matches a file in locales/
Config.PaymentMethod'bank'Account used for payments ('bank' | 'cash')
Config.DepotPrice1000Cost to recover a vehicle from the impound lot
Config.GiveKeystrueEnable or disable the key system on vehicle retrieval
Config.OpenAdministrationMenu'openadmin'Chat command to open the admin panel

Permissions

Groups allowed to access the admin menu. Leave empty to allow all players:

lua
Config.Permissions = {
    'god',
    'superadmin',
    'admin',
}

Keybinds

KeyDefaultAction
furnitureHOpen furniture placement mode
keysManagementJOpen vehicle keys management

Database column mappings

Maps the resource's internal field names to the actual columns in your framework's vehicle table:

Frameworkvehicles tableowner colmods colstate colgarage col
qb-coreplayer_vehiclescitizenidmodsstategarage
qbx_coreplayer_vehiclescitizenidmodsstategarage
esxowned_vehiclesownervehiclestoredparking
custom(empty)(empty)(empty)(empty)(empty)

Vehicle states

Internal state values used in the DB:

ConstantValueDescription
OUT0Vehicle is spawned in the world
STORED1Vehicle is inside a garage
IMPOUNDED2Vehicle is in the impound lot

Marker

The interaction marker shown at garage entry points:

lua
Config.Marker = {
    type         = 36,
    color        = {0, 0, 0, 200},
    size         = vector3(0.3, 0.3, 0.3),
    coords       = vector3(0.0, 0.0, 1.0),
    bobUpAndDown = true,
    faceCamera   = false,
    rotate       = true,
}

config/interiors.lua

Render distance

lua
Config.RenderDistance = 200  -- meters

IPL interiors

GTA built-in interiors loaded via RequestIpl. Each entry defines an exit point and vehicle spawn slots:

lua
Config.Ipls = {
    ['3-car-garage'] = {
        type   = 'ipl',
        exit   = vec4(198.47, -1005.6, -100.0, 359.44),
        spawns = {
            vec4(193.19, -996.12, -99.98, 182.00),
            vec4(197.94, -995.89, -99.98, 182.00),
            vec4(203.66, -997.5,  -99.98, 143.03),
        }
    }
}

Shell interiors

Custom 3D model shells loaded as entities. Each shell defines an exit and spawn slots:

lua
Config.Shells = {
    ['aw_origen_garage_deluxe1_shell'] = {
        model  = 'aw_origen_garage_deluxe1_shell',
        exit   = vector4(1.48, 7.09, 0.01, 182.38),
        spawns = {
            vector4(6.08,  5.94,  0.0, 91.29),
            vector4(6.10,  0.88,  0.0, 90.31),
            vector4(6.02, -4.18,  0.0, 89.69),
        }
    },
    -- aw_origen_garage_deluxe2_shell  (4 spawn slots)
    -- aw_origen_garage_deluxe3_shell  (8 spawn slots)
}

Available interiors

KeyNameTypeCapacity
3-car-garage3 Cars GarageIPL3 slots
aw_origen_garage_deluxe1_shellDeluxe Garage 1Shell3 slots
aw_origen_garage_deluxe2_shellDeluxe Garage 2Shell4 slots
aw_origen_garage_deluxe3_shellDeluxe Garage 3Shell8 slots