Sign in to follow this  
kacperppl

help with script make

Recommended Posts

Im trying and i don't know how to Make it (sorry for my English) 

Share this post


Link to post

vrFZcu5.gif
In the "Scene nodes browser", you'll see a list of parts with names, like "kit00_steeringwheel".
So long story short, if you want the steering wheel to move, refer back to "kit00_steeringwheel" using SetVehicleComponentPosition.

Good luck :rr:  :signrandr::walk:

Share this post


Link to post

addCommandHandler("scp", -- short for 'set component position'
    function()
        local theVeh = getPedOccupiedVehicle(localPlayer)
    local getComponent = door_lr_dummy (theVeh) -- returns table with all the components of the vehicle
        if (theVeh) then
            for k in pairs (getComponent) do
        local x, y, z = getVehicleComponentPosition(theVeh, k) --get the position of the component
                setVehicleComponentPosition(theVeh, k, x+1, y+1, z+1) -- increases by 1 unit
            end
        end
    end
)

 

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.