Configuration · origen_garages
Configuration is split across two files inside config/:
config/main.lua— general settings, framework, permissions, DB mappingsconfig/interiors.lua— interior shells and IPL definitions
config/main.lua
General
| Variable | Default | Description |
|---|---|---|
Config.Debug | false | Print 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.DepotPrice | 1000 | Cost to recover a vehicle from the impound lot |
Config.GiveKeys | true | Enable 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
| Key | Default | Action |
|---|---|---|
furniture | H | Open furniture placement mode |
keysManagement | J | Open vehicle keys management |
Database column mappings
Maps the resource's internal field names to the actual columns in your framework's vehicle table:
| Framework | vehicles table | owner col | mods col | state col | garage col |
|---|---|---|---|---|---|
qb-core | player_vehicles | citizenid | mods | state | garage |
qbx_core | player_vehicles | citizenid | mods | state | garage |
esx | owned_vehicles | owner | vehicle | stored | parking |
custom | (empty) | (empty) | (empty) | (empty) | (empty) |
Vehicle states
Internal state values used in the DB:
| Constant | Value | Description |
|---|---|---|
OUT | 0 | Vehicle is spawned in the world |
STORED | 1 | Vehicle is inside a garage |
IMPOUNDED | 2 | Vehicle 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 -- metersIPL 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
| Key | Name | Type | Capacity |
|---|---|---|---|
3-car-garage | 3 Cars Garage | IPL | 3 slots |
aw_origen_garage_deluxe1_shell | Deluxe Garage 1 | Shell | 3 slots |
aw_origen_garage_deluxe2_shell | Deluxe Garage 2 | Shell | 4 slots |
aw_origen_garage_deluxe3_shell | Deluxe Garage 3 | Shell | 8 slots |