Garage
Manage garages, vehicle storage, impound, and job-based parking with full ESX support.
๐ Prix Garage (prix_garage
)
prix_garage
)Manage garages, vehicle storage, impound, and job-based parking with full ESX support.
This resource is fully integrated with prix_core.
๐ฆ Requirements
MySQL resource
oxmysql
(recommended)mysql-async
ghmattisql
ESX Legacy (or compatible ESX fork)
โ๏ธ Installation
Download and place
prix_garage
inside yourresources/
folder.Add to your
server.cfg
:
ensure prix_garage
Make sure your database has the
owned_vehicles
table (default ESX vehicle ownership table).Configure garages, impounds, jobs, and settings inside:
shared/config.lua
๐ง Configuration
All configuration is located in shared/config.lua
.
Config.MySQL
Which MySQL wrapper to use (oxmysql
, mysql-async
, ghmattisql
).
Config.FuelSystem
Choose fuel integration (ox_fuel
, LegacyFuel
, or custom
).
Config.KeySystem
Handle vehicle keys (custom
by default).
Config.UseRadialMenu
Enable/disable ox_lib radial menu integration.
Config.ImpoundCommand
Configure /impound
command (jobs, radius, price).
Config.PedEnabled
Spawn NPCs at garage locations.
Config.GarageBlip
Customize map blips for garages (sprite, scale, color).
Config.ImpoundBlip
Customize map blips for impounds.
Config.JobGarajes
Job-specific garages.
Config.Garages
Public garages.
Config.Impounds
Impound locations.
๐ Example Config
Config.MySQL = 'oxmysql'
Config.FuelSystem = 'ox_fuel'
Config.ImpoundCommandEnabled = true
Config.ImpoundCommand = {
command = 'impound',
radius = 2.0,
jobs = { 'police' }
}
๐ฎ Features
โ Store and retrieve owned vehicles
โ Police/EMS impound system
โ Vehicle recovery with fee
โ Job-specific garages
โ Vehicle transfer between garages
โ NPC garage attendants & map blips
โ Multi-language support (
locales/*.json
)
๐ ๏ธ Commands
/impound
Impounds the nearest vehicle
Police/EMS (config)
๐ก Server Callbacks
prix_garage:checkOwner
Verify vehicle ownership by plate.
prix_garage:getVehicles
Get all vehicles for player/job.
prix_garage:getImpoundedVehicles
Get impounded vehicles for player.
prix_garage:canPay
Check and remove money from player.
prix_garage:getVehicle
Get vehicle data by plate.
prix_garage:setPlayerRoutingBucket
Move player into instance (routing bucket).
๐ Server Events
prix_garage:updateVehicle
Update vehicle data in DB.
prix_garage:buyVehicle
Insert new purchased vehicle into DB.
prix_garage:setVehicleOut
Mark vehicle as outside of garage.
prix_garage:setVehicleParking
Save garage parking location.
prix_garage:setVehicleImpound
Mark vehicle as impounded.
๐ Locales
Default English translation is included in locales/en.json
.
You can add more JSON files in locales/
and switch the active locale in config.
Example:
{
"radial-garage": "Garage",
"access-garage": "[E] - Open garage",
"vehicle_stored": "Vehicle successfully stored"
}
Last updated