Matevsz Posted January 8, 2017 Posted January 8, 2017 how to do that when you type the command /summon ped walked behind us?
Matevsz Posted January 8, 2017 Author Posted January 8, 2017 4 hours ago, Matevsz said: jak to zrobić, że po wpisaniu komendy / przywołać ped chodził za nami? I have done the summon command: function Ped(thePlayer) x, y, z = getElementPosition(thePlayer) createPed(299, x+0.5, y, z) end addCommandHandler("summon", Ped) addEventHandler("onClientVehicleEnter", root, function(player,seat,door) x, y, z = getElementPosition(player) ped = createPed(299, x+0.5, y, z) if (seat==0) and (door==0) then setPedControlState(ped, "enter_exit", true) end end ) just how to do that as we get into the car it also gets ped?
myonlake Posted January 8, 2017 Posted January 8, 2017 Use the warpPedIntoVehicle function to do that.
Matevsz Posted January 8, 2017 Author Posted January 8, 2017 and can not by setPedControlState? And the warpPedIntoVehicle how to pass the car? but not created createVehicle only for example summoned
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