Exports

This is a simple guide for how to use the JustGarages exports for your custom actions

Client Exports

GetVehicleProperties

This export will allow you to obtain the vehicle properties with the same values as in the garage.

-- vehicle: string|number - entity network id
exports.JustGarages:GetVehicleProperties(vehicle)

-- Example
local vehicle = GetVehiclePedIsIn(PlayerPedId())
exports.JustGarages:GetVehicleProperties(vehicle) -- return : table

Server Exports

IsPlateTaken

This export will allow you to check whether certain license plates are occupied in the garages.

-- plates: string|number - vehicle plates
exports.JustGarages:IsPlateTaken(plates)

-- Example
local plates = "JUSTSCRIPTS"
exports.JustGarages:IsPlateTaken(plates) -- return : bool (true/false)

CreateGarageVehicle

This export will allow you to create vehicle in garage of player.

Last updated