hopefully fix esx loading

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

No files matched your search

+1
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