Sign in to follow this  
좋은n4ZON

How to open car window?

Recommended Posts

setVehicleWindowOpen and setTimer i guess

 

Edited by Dimos7
  • Like 1

Share this post


Link to post
6 minutes ago, Dimos7 said:

setVehicleWindowOpen and setTimer i guess

 

It doesn't do any animation, just goes down instantly. 

Share this post


Link to post

Use those functions 

              setTimer( 
              function() 
              theVeh = getPedOccupiedVehicle(localPlayer) 
              x, y, z = getVehicleComponentPosition( theVeh, "component") 
              rx, ry, rz = getVehicleComponentRotation(theVeh, "component" )              
              setVehicleComponentPosition( theVeh, "component", x, y+0.01, z-0.01 ) 
              end, 50, 10) 

You need to use coords with + and - to make it move while timer is on .

Share this post


Link to post

You need vehicle model with window as separate component to do that.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.