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
Name | Type | Optional | Explenation |
---|---|---|---|
plate | String | No | Vehicle plate |
cb | Function | Yes | Callback function with boolean |
coords | Vector4 | Yes | Vehicle 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))