hackermagus Posted February 7, 2020 Posted February 7, 2020 I made a script local vehicle = createVehicle(596, 2392.09009, -1729.73193, 13.38281, 0, 0, 90) local ped = createPed(281, 2400, -1735, 13.38281) warpPedIntoVehicle(ped, vehicle) moveObject(vehicle, 30000, 2229.23389, -1729.73193, 13.38281) And as you can see, I want the vehicle to move on posX 2229.23389 in 30 seconds, but it not working. It creates the vehicle, the ped, insert the ped into the vehicle, but it not moving.
Moderators Patrick Posted February 7, 2020 Moderators Posted February 7, 2020 Because the vehicle is not an object.
hackermagus Posted February 7, 2020 Author Posted February 7, 2020 2 minutes ago, stPatrick said: Because the vehicle is not an object. Ohh... And how can I do to make the vehicle move?
Moderators Patrick Posted February 7, 2020 Moderators Posted February 7, 2020 1 minute ago, hackermagus said: Ohh... And how can I do to make the vehicle move? https://wiki.multitheftauto.com/wiki/SetPedControlState setPedControlState(ped, "accelerate", true)
hackermagus Posted February 7, 2020 Author Posted February 7, 2020 1 minute ago, stPatrick said: https://wiki.multitheftauto.com/wiki/SetPedControlState setPedControlState(ped, "accelerate", true) It's working thank you!
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