![Hits](https://camo.githubusercontent.com/ccdebd313d8791a0374959742b4df380d6736c7d5d848317a42628a31ae1e349/68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d68747470732533412532462532466769746875622e636f6d2532464d6f6e6f2d39342532466d47617261676526636f756e745f62673d253233453941373131267469746c655f62673d2532333233323332332669636f6e3d2669636f6e5f636f6c6f723d253233453745374537267469746c653d6869747326656467655f666c61743d66616c7365)
- Create garages/impounds in-game or in the Config file
- Garage action: Target/TextUI
- Multilanguage
- Garages for jobs
- Vehicle search in the garage interface
- Custom vehicle garages
- Obtain an item key if necessary
- Mark vehicles outside the garage
- Share vehicles with companions
- Save vehicles with fake license plates (using the 'fakeplate' item from mVehicle)
- Impound with societies
- Functions to integrate the garage into any housing system
- Function to impound vehicles
-
- The impound can establish a society account
-
-
- Function to remove time from a plate vehicle
- exports.mGarage:OpenGarage()
exports.mGarage:OpenGarage({
name = 'GARAGE ID/NAME',
garagetype = 'garage',
intocar = true,
carType = { 'automobile', 'bike' },
spawnpos = { vec4(0, 0, 0, 0) }
})
- exports.mGarage:SaveCar()
exports.mGarage:SaveCar({
name = 'GARAGE ID/NAME',
garagetype = 'garage',
entity = vehicleEntity or false to getVehiclePedIsIn,
carType = { 'automobile', 'bike' },
})
exports.mGarage:ImpoundVehicle({
vehicle = Vehicle entity,
impoundName = 'Impound Name'
})
Remove time for recovery vehicle
-- open input to set plate
exports.mGarage:UnpoundVehicle()
-- or direct plate
exports.mGarage:UnpoundVehicle(plate)
RegisterCommand('mGarage:opengarage', function(source, args, raw)
local ped = PlayerPedId()
local coords, heading = GetEntityCoords(ped), GetEntityHeading(ped)
exports.mGarage:OpenGarage({
name = 'Pillbox Hill',
garagetype = 'garage',
intocar = true,
carType = { 'automobile', 'bike' },
spawnpos = {
vec4(coords.x, coords.y, coords.z, heading),
}
})
end)
RegisterCommand('mGarage:savecar', function(source, args, raw)
local ped = PlayerPedId()
local vehicleEntity = GetVehiclePedIsIn(ped, false)
if DoesEntityExist(vehicleEntity) then
exports.mGarage:SaveCar({
name = 'Pillbox Hill',
garagetype = 'garage',
entity = vehicleEntity,
carType = { 'automobile', 'bike' },
})
else
print('No Vehicle')
end
end)
RegisterCommand('mGarage:impound', function(source, args, raw)
local ped = PlayerPedId()
local vehicleEntity = GetVehiclePedIsIn(ped, false)
if DoesEntityExist(vehicleEntity) then
ImpoundVehicle({
vehicle = vehicleEntity,
impoundName = 'Impound'
})
else
print('No Vehicle')
end
end)
RegisterCommand('mGarage:unpound', function(source, args, raw)
UnpoundVehicle()
-- or
-- UnpoundVehicle('MONO 420')
end)
![image](https://camo.githubusercontent.com/a7da873bf88a160ecbcb7a86480c77f91020f11294652197dacea2de737fcbab/68747470733a2f2f692e696d6775722e636f6d2f593952585942482e706e67)