The script is an addition to qb-garages which will give you a new impound menu with extra features and better vehicle organization. The script also comes with a special menu for Police to impound the vehicles both with fine and time or to only set a fine without impounding. The UI is clean and displays all required information about your vehicle. It will display all your vehicles even the parked ones and you can only take out vehicles which are actually in the depot with the ability to track which garage your vehicles in.
Requirements
Qbcore
qb-garages
Features
Simple Clean UI
Display all vehicles owned
Search through your vehicles
Track parked vehicles
Police Impound menu with fines and time
Police seized vehicles can be sent to impound and released automatically
Feature to automatically send vehicles to depot if destroyed (for set amount of time)
-- Server side vehicle creation with optional callback
-- the CreateVehicle RPC still uses the client for creation so players must be near
function QBCore.Functions.SpawnVehicle(source, model, coords, warp)
local ped = GetPlayerPed(source)
model = type(model) == 'string' and joaat(model) or model
if not coords then coords = GetEntityCoords(ped) end
local veh = CreateVehicle(model, coords.x, coords.y, coords.z, coords.w, true, true)
while not DoesEntityExist(veh) do Wait(0) end
if warp then
while GetVehiclePedIsIn(ped) ~= veh do
Wait(0)
TaskWarpPedIntoVehicle(ped, veh, -1)
end
end
while NetworkGetEntityOwner(veh) ~= source do Wait(0) end
return veh
end