Remove unused effect 'Peds Raining Cats And Dogs' and update player invincibility logic; add new effects: 'Teleport Everything Away' and 'Back To Black' with respective functionalities.

This commit is contained in:
2026-01-17 22:57:53 +00:00
parent a5fe1f1114
commit 9966833bfd
6 changed files with 126 additions and 52 deletions

View File

@@ -13,13 +13,10 @@ end
function OnStop()
SET_MAX_WANTED_LEVEL(5)
SET_PLAYER_INVINCIBLE(0, false)
SET_PLAYER_INVINCIBLE(GET_PLAYER_INDEX(), false)
end
function OnTick()
playerPed = PLAYER_PED_ID()
if DOES_ENTITY_EXIST(playerPed) and not IS_PED_DEAD_OR_DYING(playerPed,0) then
SET_MAX_WANTED_LEVEL(0)
SET_PLAYER_INVINCIBLE(0, true)
end
SET_MAX_WANTED_LEVEL(0)
SET_PLAYER_INVINCIBLE(GET_PLAYER_INDEX(), true)
end