Skip to main content

garageOut

exports["RiP-Fraktion"]:garageOut(plate, cb, coords) 

This function parks out a fraction vehicle with an optional spawnpoint. If the spawnpoint coord is not set, it will use the default fraction garage coords.

Arguments

NameTypeOptionalExplenation
plateStringNoVehicle plate
cbFunctionYesCallback function with boolean
coordsVector4YesVehicle spawnpoint

Returned Boolean

If the function was successful it will return true in a callback function. Otherwise it will return false with an error notify or print.

Example

exports["RiP-Fraktion"]:garageOut('RIP 999', function(callback)
if callback then
-- continue with your code
else
-- vehicle couldn't be spawned
end
end, vector4(0.0, 0.0, 0.0, 0.0))