API
```lua
--@param garageType string The type of garage (Garages, Impounds)
--@plate string The plate of the vehicle
function CanTakeOutCar(garageType, plate)
-- Your code logic here
return true
end
-- Both of them are triggered by the garage script
RegisterNetEvent("mr-garages:client:VehicleTakenOut", function(plate, netId)
local vehicle = NetworkGetEntityFromNetworkId(netId)
-- Your code logic Here
end)
RegisterNetEvent("mr-garages:client:VehicleStored", function(plate, model, garage)
-- Your code logic Here
end)
```Last updated