Fix bad implemention with SQL Function

This commit is contained in:
Daniel GP
2023-06-02 22:09:52 +02:00
committed by GitHub
parent 4b1acec5d1
commit 5998d92a9b
+1 -1
View File
@@ -38,7 +38,7 @@ end
function QBCore.Player.GetOfflinePlayer(citizenid)
if citizenid then
local PlayerData = MySQL.Sync.prepare('SELECT * FROM players where citizenid = ?', {citizenid})
local PlayerData = MySQL.prepare.await('SELECT * FROM players where citizenid = ?', {citizenid})
if PlayerData then
PlayerData.money = json.decode(PlayerData.money)
PlayerData.job = json.decode(PlayerData.job)