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
)