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

@@ -36,6 +36,10 @@ function OnStart()
end
for _, ped in ipairs(GetAllPeds()) do
if ped ~= playerPed then
if IS_PED_IN_ANY_VEHICLE(ped, false) then
TASK_LEAVE_VEHICLE(ped, GET_VEHICLE_PED_IS_IN(ped, false), 16)
end
pedPos = GET_ENTITY_COORDS(ped, true)
distance = VDIST2(playerPos.x, playerPos.y, playerPos.z, pedPos.x, pedPos.y, pedPos.z)
if distance < 1000000 then -- 1000 units squared