Refactor player spawning logic in PlayerBankHeist.lua; enhance vehicle exit handling in PlayerCantUseVehicles.lua; improve invincibility checks in PlayerInvincibleAndNoCops.lua; add vehicle exit for peds in PlayerTPEverythingAway.lua; adjust darkness scaling in ScreenBackToBlack.lua; clean up snowman entities in WeatherCanadian.lua; change EffectCategory in WeatherTrueSnow.lua; add TimeSyncWithPC.lua and VehicleGodModeAllVehicles.lua scripts.
This commit is contained in:
@@ -19,4 +19,9 @@ end
|
||||
function OnTick()
|
||||
SET_MAX_WANTED_LEVEL(0)
|
||||
SET_PLAYER_INVINCIBLE(GET_PLAYER_INDEX(), true)
|
||||
local player_id = PLAYER_ID()
|
||||
if GET_PLAYER_WANTED_LEVEL(player_id) > 0 then
|
||||
SET_PLAYER_WANTED_LEVEL(player_id, 0, 0)
|
||||
SET_PLAYER_WANTED_LEVEL_NOW(player_id, 0)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user