From 85e2d36831bf17dea35e206ff55c8435f66e5cb8 Mon Sep 17 00:00:00 2001 From: Andyyy7666 <86536434+Andyyy7666@users.noreply.github.com> Date: Wed, 7 Sep 2022 10:37:50 +0200 Subject: [PATCH] fix(functions): sql error --- ND_Core/server/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ND_Core/server/functions.lua b/ND_Core/server/functions.lua index c202844..a071b45 100644 --- a/ND_Core/server/functions.lua +++ b/ND_Core/server/functions.lua @@ -275,7 +275,7 @@ end -- This returns all the characters the player has. function NDCore.Functions.GetPlayerCharacters(player) local characters = {} - local result = MySQL.query.await("SELECT * FROM characters WHERE license = ? LIMIT", {NDCore.Functions.GetPlayerIdentifierFromType("license", player)}) + local result = MySQL.query.await("SELECT * FROM characters WHERE license = ?", {NDCore.Functions.GetPlayerIdentifierFromType("license", player)}) for i = 1, #result do local temp = result[i] characters[temp.character_id] = {id = temp.character_id, firstName = temp.first_name, lastName = temp.last_name, dob = temp.dob, gender = temp.gender, twt = temp.twt, job = temp.job, cash = temp.cash, bank = temp.bank, phoneNumber = temp.phone_number, groups = json.decode(temp.groups), lastLocation = json.decode(temp.last_location), clothing = json.decode(temp.clothing)}