Advanced Garages
Events
Client
Open garage
Opens a specific garage, such as via a radial menu. If the garageId is a registered garage (i.e. specified in the config), it performs a location check automatically for security.
-- garageId: string
-- vehicleType?: "car" | "air" | "sea"
-- spawnCoords?: vector4 | Only needed for unknown/house garage integrations
TriggerEvent("jg-advancedgarages:client:open-garage", garageId, vehicleType, spawnCoords)Store current vehicle
Stores the current vehicle in a garage. If the garageId is a registered garage (i.e. specified in the config), it performs a location check automatically for security.
--garageId: string
--garageVehicleType: "car" | "sea" | "air"
--return: boolean success
TriggerEvent("jg-advancedgarages:client:store-vehicle", garageId, garageVehicleType)Show impound form
Shows the impound form (if you have permissions) - useful for a radial menu, item, or key bind.
TriggerEvent("jg-advancedgarages:client:show-impound-form")Show private garages manager
Opens the private garages dashboard, where you can create, edit or delete private garages.
TriggerEvent("jg-advancedgarages:client:show-private-garages-dashboard")Show change plate form
Opens the change plate UI.
-- vehicle?: integer
TriggerEvent("jg-advancedgarages:client:show-vplate-form", vehicle)Server
Register vehicle outside [deprecated]
This event has been deprecated and will be removed in a future release.
--plate: string
--netId: integer
TriggerEvent("jg-advancedgarages:server:register-vehicle-outside", plate, netId)