Matevsz Posted January 8, 2017 Share Posted January 8, 2017 how to do that when you type the command /summon ped walked behind us? Link to comment
Matevsz Posted January 8, 2017 Author Share 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? Link to comment
myonlake Posted January 8, 2017 Share Posted January 8, 2017 Use the warpPedIntoVehicle function to do that. Link to comment
Matevsz Posted January 8, 2017 Author Share 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 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