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