Merge pull request #929 from MoskalykA/main

refactor(playerActive): longer refreshment time
This commit is contained in:
P Gergő
2023-03-08 13:16:02 +01:00
committed by GitHub
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