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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user