From b7db98ffdcb0215ca6ed81b0cfb711b0f7e6e352 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Fri, 18 Apr 2025 19:45:56 +0100 Subject: [PATCH] esx fixes --- shared/coreloader.lua | 7 ++++--- shared/playerfunctions.lua | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/shared/coreloader.lua b/shared/coreloader.lua index 9739557..d9422c7 100644 --- a/shared/coreloader.lua +++ b/shared/coreloader.lua @@ -197,12 +197,13 @@ elseif isStarted(RSGExport) then end vehResource = RSGExport end - if vehResource == nil then print("^4ERROR^7: ^2No Vehicle info detected ^7- ^2Check ^3starter^1.^2lua^7") else - while not Vehicles do Wait(1000) print("Waiting") end - debugPrint("^6Bridge^7: ^2Loading ^6"..countTable(Vehicles).." ^3Vehicles^2 from ^7"..vehResource) + CreateThread(function() + while not Vehicles do Wait(1000) print("Waiting") end + debugPrint("^6Bridge^7: ^2Loading ^6"..countTable(Vehicles).." ^3Vehicles^2 from ^7"..vehResource) + end) end ------------------------------------------------------------- diff --git a/shared/playerfunctions.lua b/shared/playerfunctions.lua index c2c13b0..eebbcb6 100644 --- a/shared/playerfunctions.lua +++ b/shared/playerfunctions.lua @@ -472,7 +472,7 @@ function getPlayer(source) --gangBoss = info.gang.isboss, onDuty = info.job.onDuty, --account = info.charinfo.account, - citizenId = info.citizenid, + citizenId = info.identifier, } elseif isStarted(OXCoreExport) then