mirror of
https://github.com/citizenfx/cfx-server-data.git
synced 2025-12-12 06:14:09 +01:00
spawnmanager: fix respawning on rdr
This commit is contained in:
@@ -342,7 +342,7 @@ Citizen.CreateThread(function()
|
|||||||
-- check if we want to autospawn
|
-- check if we want to autospawn
|
||||||
if autoSpawnEnabled then
|
if autoSpawnEnabled then
|
||||||
if NetworkIsPlayerActive(PlayerId()) 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
|
if autoSpawnCallback then
|
||||||
autoSpawnCallback()
|
autoSpawnCallback()
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user