1
0
mirror of https://github.com/citizenfx/cfx-server-data.git synced 2025-03-12 14:57:21 +08:00

spawnmanager: fix respawning on rdr

This commit is contained in:
astatine 2019-12-12 18:53:51 +01:00
parent dbdd474310
commit 2bde7889b4

View File

@ -342,7 +342,7 @@ Citizen.CreateThread(function()
-- check if we want to autospawn
if autoSpawnEnabled then
if NetworkIsPlayerActive(PlayerId()) then
if (diedAt and (GetTimeDifference(GetGameTimer(), diedAt) > 2000)) or respawnForced then
if (diedAt and (math.abs(GetTimeDifference(GetGameTimer(), diedAt)) > 2000)) or respawnForced then
if autoSpawnCallback then
autoSpawnCallback()
else