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:
@@ -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
|
||||
|
@@ -11,9 +11,11 @@ function OnStart()
|
||||
end
|
||||
|
||||
function OnStop()
|
||||
SET_FOLLOW_PED_CAM_VIEW_MODE(1)
|
||||
end
|
||||
|
||||
function OnTick()
|
||||
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)
|
||||
SET_FOLLOW_PED_CAM_VIEW_MODE(4)
|
||||
end
|
||||
|
@@ -5,7 +5,8 @@ EffectInfo = {
|
||||
EffectGroup = "_group_weatherchange",
|
||||
EffectCategory = "Shader",
|
||||
IncompatibleIds = {
|
||||
"world_snow"
|
||||
"world_snow",
|
||||
"weather_canadian"
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user