Hey.
I want to make a scene with a car, which is a taxi. I use setPedControlState to control it to the positions, but it sometimes goes longer, sometimes goes shorter. So, its little bit buggy. Is there any other way to do it?
local scene2 = createVehicle(420, 1947.1982421875, -1749.4130859375, 13.3828125, 0, 0, 90)
local scene2sofor = createPed(255, 0, 0, 0)
warpPedIntoVehicle(bemutatoPed, scene2, 2)
warpPedIntoVehicle(scene2sofor, scene2)
setTimer(function()
setPedControlState(scene2sofor, "accelerate", true)
setTimer(setPedControlState, 4500, 1, scene2sofor, "accelerate", false)
setTimer(setPedControlState, 6000, 1, scene2sofor, "handbrake", true)
end, 1500, 1)