![Hits](https://camo.githubusercontent.com/9c362786d31c63d865f6eaa1eae70db9e31c6d8b40c04b8d285c7ac6f3d72e13/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/60f31aec51f8db212470c926db655720205049fa7236e7dcad3109aafdecfdef/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313233343834303036323138313736393337382f313233383235353433353335383636363838342f33303735393262372d623764312d343062342d623631352d6131616330643236633338352e6a70673f65783d36363365396562642669733d363633643464336426686d3d3133336234343365316131383439306130656638363639363530303638643063353436313439643962646139333031343035333936363532303231313265323726)