Advanced Garage
Exports and events
Open a garage and read a player's vehicles from other resources.
Client
openGarage
Opens the menu of the given garage. The id is one of the keys in Config.Garages.
exports['eureka-garage']:openGarage('legion')getNearbyGarage
Returns the id of the garage closest to the player, or nil if none is nearby.
local garageId = exports['eureka-garage']:getNearbyGarage()Server
getPlayerVehicles
Returns the player's vehicles in garages.
local vehicles = exports['eureka-garage']:getPlayerVehicles(source)
for _, vehicle in ipairs(vehicles) do
print(vehicle.plate, vehicle.model, vehicle.garage)
endimpoundVehicle
Impounds a vehicle and records the given fee.
exports['eureka-garage']:impoundVehicle(plate, 'police', 500)Events
AddEventHandler('eureka-garage:server:vehicleStored', function(source, plate, garageId)
-- a vehicle was stored
end)AddEventHandler('eureka-garage:client:vehicleSpawned', function(vehicle, plate)
-- a vehicle left the garage; vehicle is an entity handle
end)Last updated September 21, 2026