Jump to content

Wheels Rotation


t3wz

Recommended Posts

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

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