Qbx_garages & qbx_vehicles

qbx_garages

Provides a powerful and flexible backend API for creating and managing player owned vehicle stores. Also comes with a simple ox_lib UI that can be disabled by config option for those wanting something custom looking while still keeping the backend functionality of this resource.

Features

Export & Callback API

qbx_garages is designed for 3rd party resources to easily replace the built-in UI or interface with the backend. Exports provide functionality to:

  • Register garages at runtime
  • Move vehicles between garages
  • change the depot price of a vehicle

Access Points

Garages can now have more than one access point. An access point is a location on the map where vehicles in that garage can be accessed.
Access points have their own pick up, drop off, and spawn locations and an optional blip. Additionally, the pick up & drop off points can optionally be combined.

Access Control

Can limit garage access to a list of jobs/gangs with optional minimum grades. Can also pass a custom canAccess function for more advanced access controls.

Vehicle Filtering

  • Vehicle type filter only grants access to vehicles of a specific type. So that aircraft can’t be placed in car garages for example.
  • Optional vehicle state filter only grants access to vehicles in one of or a combination of vehicle states: OUT, GARAGED, IMPOUNDED
  • Shared flag optionally allows players to access all vehicles in the garage, instead of just vehicles they personally own.
  • Garage check optionally allows players to access vehicles not currently in the garage.

Main Differences compared to qb-garages

  • Rather than have predefined garage types, qbx_garages has per garage config flags, allowing for greater flexibility in who can access a garage and what vehicles will be shown.
  • Several global settings are now per garage config options.
  • To support house garages, pass a custom canAccess function to check owning player
  • re-written with security, readability, and performance in mind

Dependencies

  • qbx_core
  • qbx_vehicles

qbx_vehicles

Provides backend API for managing player owned vehicles. Abstracts away SQL calls and gives developers clean, simple exports to use instead.

What is Qbox?

A spiritual successor to the qb-core framework. Find more details at http://www.qbox.re/

12 Likes

qbox on top fr

Great work from the Qbox team and contributors!

It’s a pretty serious upgrade over Qbcore garages. We’ve made some modifications for Popcorn RP ourselves, but compared to the absolute pigsty that is qb-garages, it’s infinitely easier to work with.

Ton of the “accepted” issues that have been present in qb-garages are no longer a problem + all the improvements with it working with ox_inv.

Video if anyone wants to see what were able to easily to add on to it, big shout out to @Manason + all other qbox contributors pushing serious improvements and making it a release ready resource.

If it is possible to customize and change the name of the vehicle, it would be better to recognize and retrieve it more easily when there are more vehicles