[HELP] Disable building rendering while in apartments

When I am inside of apartments, game still renders walls etc, so there are some visual bugs from inside, and some walls even come inside of apartments.

Well I fixed it with INTERIOR::_HIDE_MAP_OBJECT_THIS_FRAME
but now I have problem that it doesn’t render most of the map seen from windows.

        Citizen.InvokeNative(0x4B5CFC83122DF602)
        HideMapObjectThisFrame(GetHashKey("hei_dt1_20_build2"))
        HideMapObjectThisFrame(GetHashKey("dt1_20_dt1_emissive_dt1_20"))
        Citizen.InvokeNative(0x3669F1B198DCAA4F)

Ok, first and last lines are needed to disable occlusion. Without them city will disappear behind invisible walls. Second and third line are hiding exterior for speciefic building. It has to be made each frame when player is inside of apartments.

1 Like