hackermagus Posted February 7, 2020 Share 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. Link to comment
Moderators Patrick Posted February 7, 2020 Moderators Share Posted February 7, 2020 Because the vehicle is not an object. Link to comment
hackermagus Posted February 7, 2020 Author Share 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? Link to comment
Moderators Patrick Posted February 7, 2020 Moderators Share 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) Link to comment
hackermagus Posted February 7, 2020 Author Share Posted February 7, 2020 1 minute ago, stPatrick said: https://wiki.multitheftauto.com/wiki/SetPedControlState setPedControlState(ped, "accelerate", true) It's working thank you! 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