Jump to content

Need help with SetVehicleComponentVisible


Recommended Posts

 

I guess I'm new so I'm not even sure I'm writing there. But I have such a question. I can not hide objects that are in door_rf_dummy, i can not hide doors in a car model. Please say, this is your own crookedness or MTA  bug. Hide the dummy I do not like, i need to hide object in dummy. I would be grateful for the help

Code:

addCommandHandler("door", --  for vehicle component 
    function()
        local theVeh = getPedOccupiedVehicle(localPlayer)
        if (theVeh) then
                setVehicleComponentVisible(theVeh, "door_lf_ok", false) -- hides the component
                setVehicleComponentVisible(theVeh, "door_rf_ok", false) -- hides the component
        end
    end
)

Link to comment

The MTA developers did their best but yes that's how it is.
You could UV map the door and load a transparent shader to the door when you enter the command.

And of course you could put the doors under a different parent and attempt to find a way to disable the enter/exit animation but idk O.o

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