t3wz Posted January 16, 2015 Share Posted January 16, 2015 I'm trying to set the vehicles wheels rotation, i did this script but dont works, why ? Components = { "wheel_rf_dummy", "wheel_lb_dummy", "wheel_rb_dummy", "wheel_lf_dummy" } function testtttqq ( ) if getPedOccupiedVehicle ( localPlayer ) then local veh = getPedOccupiedVehicle ( localPlayer ) for _,v in ipairs ( Components ) do setVehicleComponentRotation ( veh, v, 0, 90, 90 ) end outputChatBox ( "okay" ) else outputChatBox ( "on foot !" ) end end addCommandHandler ( "b", testtttqq, false ) output "okay", but nothing happens with the wheels. sorry my english :c Link to comment
Gallardo9944 Posted January 17, 2015 Share Posted January 17, 2015 Maybe GTA resets those wheels back immediately. Try to put that in a render. Link to comment
t3wz Posted January 17, 2015 Author Share Posted January 17, 2015 Maybe GTA resets those wheels back immediately. Try to put that in a render. does not work with event onClientRender, Maybe a mta bug ? 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