Server Callbacks
Can be used to support a custom UI. Called from the client.
getGarages
Get the currently registered garages
lib.callback.await('qbx_garages:server:getGarages')
getGarageVehicles
Get vehicles that the player has access to in the given garage. Does not return vehicles currently spawned in the world.
lib.callback.await('qbx_garages:server:getGarageVehicles', false, garageName)
isParkable
Returns true if the player can access the garage and the vehicle matches the garage filters
lib.callback.await('qbx_garages:server:isParkable', false, garageName, netId)
parkVehicle
Stores the vehicle in the garage and deletes the entity from the world
lib.callback.await('qbx_garages:server:parkVehicle', false, netId, props, garageName)
payDepotPrice
Takes vehicle's depot price from cash or bank and returns true if player paid. Does not update the vehicle's depot price after payment.
lib.callback.await('qbx_garages:server:payDepotPrice', false, vehicleId)
spawnVehicle
Spawns the vehicle entity in the world at the given garage's access point. Checks that the player has required access permissions to do so. Attempts to give the player vehicle keys.
lib.callback.await('qbx_garages:server:spawnVehicle', false, vehicleId, garageName, accessPointIndex)