Skip to main content

garageIn

exports["RiP-Fraktion"]:garageIn(vehicle, cb) 

This function parks in a fraction vehicle.

Arguments

NameTypeOptionalExplenation
vehicleIntegerNoVehicle handle (object)
cbFunctionYesCallback function with boolean

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

local vehicle = GetVehiclePedIsIn(PlayerPedId(), false)
exports["RiP-Fraktion"]:garageIn(vehicle, function(callback)
if callback then
-- continue with your code
else
-- vehicle couldn't be parked
end
end)