Update query function

This commit is contained in:
Daniel GP
2023-06-01 21:23:00 +02:00
committed by GitHub
parent 147d90e458
commit 4b1acec5d1
+1 -1
View File
@@ -59,7 +59,7 @@ end
function QBCore.Player.GetPlayerByLicense(license)
if license then
local PlayerData = MySQL.Sync.prepare('SELECT * FROM players where license = ?', {license})
local PlayerData = MySQL.prepare.await('SELECT * FROM players where license = ?', {license})
if PlayerData then
PlayerData.money = json.decode(PlayerData.money)
PlayerData.job = json.decode(PlayerData.job)