JG Docs
Advanced Garages

Client API

openGarage

Open an existing garage using its registered settings.

client.lua
exports["jg-advancedgarages"]:openGarage(garageId)
ParameterTypeRequiredDescription
garageIdstringYesGarage ID from /garageadmin or the server's registerGarage export

For external registrations, access, distance and routing bucket checks run on the server. See Registering Garages to use this with your own prompts.

storeVehicle

Store the player's current vehicle in an existing garage.

client.lua
local success = exports["jg-advancedgarages"]:storeVehicle(garageId)
ReturnsTypeDescription
successbooleanWhether the vehicle was stored
ParameterTypeRequiredDescription
garageIdstringYesGarage ID from /garageadmin or the server's registerGarage export

The registered vehicle type and parking position are used automatically. See Registering Garages to use this with your own prompts.

showImpoundForm

Open the impound form for the closest vehicle within five metres, using the player's job permissions.

client.lua
exports["jg-advancedgarages"]:showImpoundForm()

If the vehicle isn't in the database, it is deleted instead of opening the form.

showPrivateGaragesDashboard

Open the private garages section of the admin panel if the player has permission.

client.lua
exports["jg-advancedgarages"]:showPrivateGaragesDashboard()

showVplateForm

Open the change plate form for the vehicle the player is currently in.

client.lua
exports["jg-advancedgarages"]:showVplateForm()

The vehicle must be in the database, and the server checks permission when the plate change is submitted.

Last updated 18 September 2026

On this page