refactor(playerActive): longer refreshment time

This commit is contained in:
MoskalykA
2023-03-08 12:30:11 +01:00
parent 4ce57fc566
commit 5f096f485f
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -2,7 +2,8 @@ local pickups = {}
CreateThread(function()
while not Config.Multichar do
Wait(0)
Wait(100)
if NetworkIsPlayerActive(PlayerId()) then
exports.spawnmanager:setAutoSpawn(false)
DoScreenFadeOut(0)
+3 -2
View File
@@ -4,12 +4,13 @@ if ESX.GetConfig().Multichar then
CreateThread(function()
while not ESX.PlayerLoaded do
Wait(0)
Wait(100)
if NetworkIsPlayerActive(PlayerId()) then
exports.spawnmanager:setAutoSpawn(false)
DoScreenFadeOut(0)
while not GetResourceState('esx_context') == 'started' do
Wait(0)
Wait(100)
end
TriggerEvent("esx_multicharacter:SetupCharacters")
break