Modified effects:

- I introduced a system that checks if the player is dead or mid transition to stop visual effects overlaying on unimportant user interfaces.
This commit is contained in:
2025-09-24 22:08:04 +01:00
parent 97f5056620
commit ad36f277cc
3 changed files with 6 additions and 1 deletions

View File

@@ -14,5 +14,7 @@ function OnStop()
end
function OnTick()
playerPed = PLAYER_PED_ID()
if not DOES_ENTITY_EXIST(playerPed) or IS_PLAYER_SWITCH_IN_PROGRESS() or IS_PED_DEAD_OR_DYING(playerPed,0) then return end
DRAW_RECT(0.5, 0.5, 1.0, 1.0, 0, 0, 0, 255)
end