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