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 end
function OnTick() 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) DRAW_RECT(0.5, 0.5, 1.0, 1.0, 0, 0, 0, 255)
end end

View File

@@ -11,9 +11,11 @@ function OnStart()
end end
function OnStop() function OnStop()
SET_FOLLOW_PED_CAM_VIEW_MODE(1)
end end
function OnTick() function OnTick()
DRAW_RECT(1.0, 0.5, 1.0, 1.0, 0, 0, 255, 168) DRAW_RECT(1.0, 0.5, 1.0, 1.0, 0, 0, 255, 168)
DRAW_RECT(0.0, 0.5, 1.0, 1.0, 255, 0, 0, 168) DRAW_RECT(0.0, 0.5, 1.0, 1.0, 255, 0, 0, 168)
SET_FOLLOW_PED_CAM_VIEW_MODE(4)
end end

View File

@@ -5,7 +5,8 @@ EffectInfo = {
EffectGroup = "_group_weatherchange", EffectGroup = "_group_weatherchange",
EffectCategory = "Shader", EffectCategory = "Shader",
IncompatibleIds = { IncompatibleIds = {
"world_snow" "world_snow",
"weather_canadian"
} }
} }