Jump to content

How to open car window?


Recommended Posts

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 .

Link to comment

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...