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:
parent
dbdd474310
commit
2bde7889b4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user