Configuration · origen_parking
All settings live in config/config.lua.
General
| Variable | Default | Description |
|---|---|---|
Config.Locale | 'es' | UI language — 'en' | 'es' | 'fr' | 'de' | 'pt' |
Config.Framework | 'auto' | Framework — 'auto' | 'qbx' | 'qb' | 'esx' | 'standalone' | 'custom' |
Config.KeySystem | 'auto' | Key system — 'auto' | 'qbx_vehiclekeys' | 'qs-vehiclekeys' | 'rk-keys' | 'none' | 'custom' |
Config.AdminSystem | 'auto' | Admin validation — 'auto' | 'origen_admin' | 'ace' | 'qbx' | 'esx' | 'custom' |
Config.AdminPermission | 'org_parking' | Permission string used for origen_admin |
Config.AdminAceNode | 'org_parking.admin' | Ace node used when AdminSystem = 'ace' |
Config.NotifySystem | 'auto' | Notifications — 'auto' | 'ox_lib' | 'qbx' | 'esx' | 'chat' | 'custom' |
Config.TableName | 'org_parking' | SQL table name — do not change if data already exists |
Config.GarageIntegration | 'auto' | Garage system — 'auto' | 'origen_garages' | 'qb-garages' | 'none' | 'custom' |
Config.AdminCommand | 'orgadmin' | Chat command to open the admin panel |
Config.Debug | false | Enable debug logging |
Parking behavior
| Variable | Default | Description |
|---|---|---|
Config.AutomaticParking | true | Auto-park when the player exits and locks the vehicle |
Config.AutomaticParkingTimeout | 30 | Seconds to wait for lock after exiting before parking |
Config.LockVehiclesOnSpawn | true | Lock spawned vehicles automatically |
Config.GiveKeysOnSpawn | true | Give keys to the player when their vehicle spawns |
Config.AntiTheft | true | Eject players who are not the vehicle owner |
Spawn / streaming
| Variable | Default | Description |
|---|---|---|
Config.SpawnRadius | 200.0 | Distance in meters to spawn a parked vehicle |
Config.DespawnRadius | 250.0 | Distance in meters to despawn — must be > SpawnRadius |
Config.DespawnDelay | 10 | Seconds before removing the entity after leaving range |
Config.GridCellSize | 150 | Spatial grid cell size in meters |
Config.SpawnConcurrency | 8 | Max parallel server-side spawns at once |
Config.UseDimensions | false | Enable routing bucket (dimension) support |
Limits
| Variable | Default | Description |
|---|---|---|
Config.MaxPerCell | 0 | Max parked vehicles per grid cell — 0 = disabled |
Config.MaxPerPlayer | 0 | Max parked vehicles per player — 0 = disabled |
Zone limits
Fine-grained caps per area:
lua
Config.ZoneLimits = {
{ name = 'City Center', coords = vector3(100.0, 200.0, 30.0), radius = 50.0, max = 5 },
}Parking cost
Charge players when they retrieve their vehicle:
lua
Config.ParkingCost = {
enabled = false,
ratePerHour = 50, -- $ per hour
minimum = 10, -- minimum charge
freeMinutes = 0, -- free grace period
blockIfBroke = true, -- prevent retrieval if player can't pay
}Visuals
| Variable | Default | Description |
|---|---|---|
Config.BlipEnabled | true | Show a map blip for each of the player's parked vehicles |
Config.BlipColor | 3 | Blip color — 0=white 1=red 2=green 3=blue 5=yellow 40=purple |
Config.BlipSprite | 669 | Blip sprite — 669=parked car 357=P 225=small car |
Config.ParkingMarker.enabled | true | Show a floating "P" marker above nearby parked vehicles |
Config.ParkingMarker.drawDist | 20.0 | Distance in meters to draw the marker |
Fuel
| Variable | Default | Description |
|---|---|---|
Config.SaveFuel | true | Save and restore fuel level when parking/retrieving |
Config.FuelSystem | 'auto' | Fuel system — 'auto' | 'ox_fuel' | 'LegacyFuel' | 'ps-fuel' | 'cdn-fuel' | 'native' | 'custom' |
Collision detection
| Variable | Default | Description |
|---|---|---|
Config.CollisionNotify | true | Notify the owner and update position when a parked vehicle is hit |
Config.CollisionPositionUpdateInterval | 3 | Min seconds between DB position writes on collision |
Blacklists
Blacklisted models
Vehicles that cannot be parked:
lua
Config.BlacklistedModels = {
'bmx', 'cruiser', 'fixter', 'scorcher',
'tribike', 'tribike2', 'tribike3',
}Blacklisted zones
Areas where parking is not allowed:
lua
Config.BlacklistedZones = {
{ coords = vector3(441.0, -982.0, 30.0), radius = 30.0 },
}Auto purge
Delete inactive entries on resource start:
lua
Config.Clean = {
enabled = true,
maxInactiveDays = 30,
}