From 6b6a7e690423bfa193a871a1084bd2d75c8558ef Mon Sep 17 00:00:00 2001 From: cody196 Date: Wed, 5 Mar 2025 14:40:47 -0500 Subject: [PATCH] Update DisableOcclusionThisFrame.md description and provided example --- GRAPHICS/DisableOcclusionThisFrame.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/GRAPHICS/DisableOcclusionThisFrame.md b/GRAPHICS/DisableOcclusionThisFrame.md index 9b82dd75d..f679cc747 100644 --- a/GRAPHICS/DisableOcclusionThisFrame.md +++ b/GRAPHICS/DisableOcclusionThisFrame.md @@ -7,6 +7,17 @@ aliases: ["0x3669F1B198DCAA4F"] ```c // 0x3669F1B198DCAA4F 0x0DCC0B8B void DISABLE_OCCLUSION_THIS_FRAME(); -``` +This disables all occluders that cause the 'flickering' rendering under the map and inside buildings with no interiors, note that this may impact performance on lower end systems. +``` +## Examples +```lua +-- Example thread that has to run every frame +Citizen.CreateThread(function() + while true do + DisableOcclusionThisFrame() + Citizen.Wait(0) + end +end) +```