Exports
Server Exports
Get all garages
Used to get information on all garages.
--[[ return: table
{
{
name: string,
label: string,
type: string,
vehicle: string,
blipName: string,
blipColor: number,
blipNumber: number
showBlip: boolean,
takeVehicle: vector3,
putVehicle: vector3,
spawnPoint: vector4,
},
...
}
]]
local garages = exports["jg-advancedgarages"]:getAllGarages()
Register vehicle outside
Available in v3.2.5 and later
Register a vehicle as outside the garage & currently spawned; so the vehicle cannot be respawned. This prevents vehicle duplication. Useful for integrating for scripts also spawning vehicles from the garage; such as a valet.
---@param plate string
---@param netId integer The network ID of the vehicle (not entity id!)
exports["jg-advancedgarages"]:registerVehicleOutside(plate, netId)
Delete outside vehicle
Available in v3.2.5 and later
This allows you to delete a vehicle via it's plate if the vehicle is registered as outside within JG Advanced Garages; either via interacting with a garage directly or by using the registerVehicleOutside
export.
---@param plate string
exports["jg-advancedgarages"]:deleteOutsideVehicle(plate)
Last updated
Was this helpful?