Jump to content

Move vehicle


Tomc0

Recommended Posts

Posted

Hello!

I have a little question... Is it possible to move a car like this?

local auto = createVehicle( 470, 135, 1953.8000488281, 19.5 )  
  
function MoveAuto() 
   moveObject( auto, 10000, 123.40000152588, 2403.3999023438, 16.60000038147 ) 
end  
  

Posted

'moveObject' can only be used to move elements of 'object' type, not 'vehicles' or 'peds'.

"First they ignore you, then they laugh at you, then they fight you, then you win."

- Mahatma Gandhi (1869-1948)

Posted

1) Create any object (better something collision-less) and make it invisible (setElementAlpha)

2) Attach your vehicle to that object

3) Use moveObject function on that object.

  • Thanks 2

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...