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:
2026-01-19 23:10:15 +00:00
parent 9966833bfd
commit 5e7aecc712
9 changed files with 212 additions and 8 deletions

View File

@@ -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