NeXuS™ Posted April 23, 2017 Share Posted April 23, 2017 I think you can move the window by setVehicleComponentPosition. Link to comment
Dimos7 Posted April 23, 2017 Share Posted April 23, 2017 (edited) setVehicleWindowOpen and setTimer i guess Edited April 23, 2017 by Dimos7 1 Link to comment
NeXuS™ Posted April 23, 2017 Share Posted April 23, 2017 6 minutes ago, Dimos7 said: setVehicleWindowOpen and setTimer i guess It doesn't do any animation, just goes down instantly. Link to comment
Krons Posted April 23, 2017 Share Posted April 23, 2017 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
lopezloo Posted April 28, 2017 Share Posted April 28, 2017 You need vehicle model with window as separate component to do that. 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