hopefully fix esx loading

This commit is contained in:
Jim Shield
2025-04-08 17:47:12 +01:00
committed by GitHub
parent 2da2c56705
commit 2be706a860
6 changed files with 25 additions and 17 deletions

View File

@@ -140,6 +140,7 @@ function waitForLogin()
if isStarted(ESXExport) then
debugPrint("^6Bridge^7: ^3ESX waitForLogin^7() ^2running^7")
while (GetGameTimer() - startTime) < timeout do
while not ESX do Wait(100) end
local playerData = ESX.GetPlayerData()
if playerData and playerData.job then
loggedIn = true