Resources
Exports
Server

Server Exports

RegisterGarage

Registers a garage at runtime. This is an alternative to defining them in the qbx_garages config.

exports.qbx_garages:RegisterGarage(name, config)

SetVehicleGarage

Sets the vehicle's garage. Only affects the database.

exports.qbx_garages:SetVehicleGarage(vehicleId, garageName)

SetVehicleDepotPrice

Sets the price to take the car out of the depot

exports.qbx_garages:SetVehicleDepotPrice(vehicleId, depotPrice)

GetGarages

Returns the registered garages

exports.qbx_garages:GetGarages()