Client API
openGarage
Open an existing garage using its registered settings.
exports["jg-advancedgarages"]:openGarage(garageId)| Parameter | Type | Required | Description |
|---|---|---|---|
garageId | string | Yes | Garage 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.
local success = exports["jg-advancedgarages"]:storeVehicle(garageId)| Returns | Type | Description |
|---|---|---|
success | boolean | Whether the vehicle was stored |
| Parameter | Type | Required | Description |
|---|---|---|---|
garageId | string | Yes | Garage 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.
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.
exports["jg-advancedgarages"]:showPrivateGaragesDashboard()showVplateForm
Open the change plate form for the vehicle the player is currently in.
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