Skip to content

justthendra/thd_garages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚗 thd_garages | Persistent Vehicle Management

A robust and modern vehicle storage system for the QBCore framework. This resource offers a clean, efficient way for players to store, retrieve, and manage their personal vehicles across the map, featuring a focus on performance and visual clarity.

Version System


✨ Features

  • Persistent Vehicle Storage: Saves vehicle state (damage, fuel, body health) between sessions.
  • Modern UI: Clean and intuitive list interface for browsing stored vehicles.
  • Visual Previews: Displays vehicle names, plates, and current status (Stored/Out/Seized).
  • Public & Job Garages: Support for shared public garages and restricted job-specific parking lots.
  • Impound System: Integrated impound functionality for vehicle recovery after police seizures.
  • Optimized for QBCore: Seamlessly interacts with the player_vehicles table for data integrity.

🎨 Design Philosophy

thd_garages follows the AstraV design system:

  • Clean Layout: Minimalist lists that make finding your vehicle easy even with a large collection.
  • Emerald Highlights: Status indicators (Stored/Impounded) use clear, color-coded themes.

🛠️ Requirements

  • QBCore Framework
  • oxmysql
  • qb-target (optional, but recommended for interaction points)

🚀 Installation

  1. Drag the thd_garages folder into your resources/[thd] directory.
  2. Add the following to your server.cfg:
    ensure thd_garages
  3. Ensure your player_vehicles table exists in the database (standard QBCore setup).

⚙️ Configuration

Define garage locations and types in config.lua:

Config = {}
Config.Garages = {
    ["LegionSquare"] = {
        label = "Legion Square Garage",
        type = "public",
        coords = vector3(215.12, -810.15, 30.73),
        spawnPoint = vector4(224.15, -805.12, 30.50, 335.0),
    },
    -- ... more garages
}

🖱️ Interaction

  1. Approach a garage blip or interaction point.
  2. Use Targeting (Alt) or press [E] to "Open Garage".
  3. Select your vehicle from the list to spawn it at the designated location.
  4. To store, drive your vehicle into the garage zone and select "Store Vehicle".

About

A robust and modern vehicle storage system for the QBCore framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages