function AutoPilot()
ap = not ap
if ap then
printStringNow("Ah shit, here we go again.", 2000)
if isCharInAnyCar(PLAYER_PED) then
if getTargetBlipCoordinatesFixed() then
local _, x, y, z = getTargetBlipCoordinatesFixed()
taskCarDriveToCoord(PLAYER_PED, storeCarCharIsInNoSave(PLAYER_PED), x, y, z, pSpeed, 0, 0, 2)
end
end
else
taskWarpCharIntoCarAsDriver(PLAYER_PED, storeCarCharIsInNoSave(PLAYER_PED))
end
end