Move:
local parachute = createObject(371, 0, 0, 0)
to the top of the script.
local parachute = createObject(371, 0, 0, 0)
function Break(thePlayer)
if (not isPedInVehicle(thePlayer)) then return end
local vehicle = getPedOccupiedVehicle(thePlayer)
local handling = getVehicleHandling(vehicle)
setElementData(vehicle, "slowing", vehicle)
setVehicleHandling(vehicle, "brakeDeceleration", 20.08)
setVehicleHandling(vehicle, "tractionMultiplier", 1.08)
attachElements(parachute, vehicle, 0, 0, 0)
setTimer (Breakoff, 8000, 1, vehicle)
end
addCommandHandler ( "break", Break )
function Breakoff(vehicle)
local handling = getElementData(vehicle, "slowing")
setVehicleHandling(vehicle, "brakeDeceleration", slowing)
setVehicleHandling(vehicle, "tractionMultiplier", slowing)
end