Sign in to follow this  
salh

X][HELP][x ابي السياره تتحرك و البيد داخلها

Recommended Posts

السلام عليكم

ابي مساعده

انا سويت ا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)

 

يمشي بسياره*

Share this post


Link to post
11 hours ago, Abdul KariM said:

setPedControlState 

شكرا بس كيف اسويه مع تايمر يعني بعد وقت محدد يروح يمين و زي كذا

Share this post


Link to post
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)

الكود يشتغل لما اشيل السياره و اخلي البيد

يصير البيد يمشي بس

انا ابي السياره تتحرك مو البيد نفسه

Share this post


Link to post
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

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.