mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-28 23:01:29 +00:00
Fix bad implemention with SQL Function
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user