
Garages
This resource aims to satisfy most of the personal vehicle garage requirements for your server.
- Multiple UI and interaction methods (NUI showroom, basic context menu, persistent parking zones).
- Highly configurable access control (job, group/gang, character identifier restrictors).
- Class restrictions.
- Capacity restrictions.
Config
All of the config vars found below are stored within the config.lua file.
Expand
config = {
-- This is only used for online mechanic duty count.
mechanicJobs = {
"mechanic",
},
-- How many mechanics must be online before the "fix vehicle" option in NUI garages is no longer available?
mechanicsToRepair = 3,
-- Price to repair a vehicle from NUI showroom if no mechanics online.
repairPrice = 500,
-- Price to retrieve vehicle from impound.
impoundFine = 750,
-- Price to deliver vehicle from another garage to the current garage.
deliveryPrice = 1000,
-- Should vehicles that are lost in the world be restored to impound on restart?
restoreLostVehicles = true,
}
Garage Creation
For type-specific config options, check out the documentation.
A working example can be found in the garages.lua file.
Labels
All labels and translations can be found within the labels.lua file.
Expand
labels = {
db_vehicle_not_found = "Error attempting to find vehicle in database.",
db_props_model_err = "The vehicle model does not match the database model.",
}
Usage
Check out the wiki for an update-to-date list of dependencies, conflicting resources, examples, and proper export documentation. You can otherwise contact me via DM for further instruction.
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 3000 |
| Requirements | ti_utils |
| ti_persistentVehicles | |
| ti_vehicleKeys | |
| Support | Yes |
