![Discord](https://camo.githubusercontent.com/f1a4abb741ce38128235eb9696c07bbbfa388967c3a4c9864ebe4f26f978e027/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f313034383633303731313838313536383236373f7374796c653d666c6174266c6162656c3d4f6e6c696e652532305573657273)
- 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/99f946a9d5e5a05765a0179356bb0a02eb14f70e174ef60d475ae2bd7bd8da83/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313233343834303036323138313736393337382f313233383235353433353335383636363838342f33303735393262372d623764312d343062342d623631352d6131616330643236633338352e6a70673f65783d36363365396562642669733d363633643464336426686d3d3133336234343365316131383439306130656638363639363530303638643063353436313439643962646139333031343035333936363532303231313265323726)