salh Posted May 23, 2019 Share Posted May 23, 2019 السلام عليكم ابي مساعده انا سويت اped و السياره و ينتقل لها و كل شي بس ابي يمشي في مسار انا احدده الكود: function makePed() local carped = createPed(287 ,1788.16956, 866.78821, 10.55843) local veh = createVehicle(551, 1788.16956, 866.78821, 10.55843) warpPedIntoVehicle(carped,veh) end addCommandHandler("carp", makePed) يمشي بسياره* Link to comment
salh Posted May 23, 2019 Author Share Posted May 23, 2019 11 hours ago, Abdul KariM said: setPedControlState شكرا بس كيف اسويه مع تايمر يعني بعد وقت محدد يروح يمين و زي كذا Link to comment
salh Posted May 23, 2019 Author Share Posted May 23, 2019 function makePed() local carped = createPed(287 ,1788.16956, 866.78821, 10.55843) local veh = createVehicle(551, 1788.16956, 866.78821, 10.55843) warpPedIntoVehicle(carped,veh) setPedControlState(carped, "forwards", true) end addCommandHandler("carp", makePed) الكود يشتغل لما اشيل السياره و اخلي البيد يصير البيد يمشي بس انا ابي السياره تتحرك مو البيد نفسه Link to comment
JustP Posted May 23, 2019 Share Posted May 23, 2019 2 hours ago, salh said: function makePed() local carped = createPed(287 ,1788.16956, 866.78821, 10.55843) local veh = createVehicle(551, 1788.16956, 866.78821, 10.55843) warpPedIntoVehicle(carped,veh) setPedControlState(carped, "forwards", true) end addCommandHandler("carp", makePed) الكود يشتغل لما اشيل السياره و اخلي البيد يصير البيد يمشي بس انا ابي السياره تتحرك مو البيد نفسه بدل forward بـ accelerate Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now