1
0
Fork 0
forked from Simnation/Main

Update server.lua

This commit is contained in:
Miho931 2025-06-25 12:28:48 +02:00
parent 6d63186878
commit 249996b2c9

View file

@ -44,7 +44,7 @@ AddEventHandler('mh_jobgarage:DeleteFromList', function(plate)
local Player = QBCore.Functions.GetPlayer(_source) local Player = QBCore.Functions.GetPlayer(_source)
local pedid = Player.PlayerData.citizenid local pedid = Player.PlayerData.citizenid
local keycounter = nil local keycounter = nil
MySQL.query("SELECT value FROM mh_jobgarage WHERE plate = ?", {plate}, function(rs) MySQL.query.await("SELECT value FROM mh_jobgarage WHERE plate = ?", {plate}, function(rs)
print("RS Value: "..json.encode(rs)) print("RS Value: "..json.encode(rs))
if rs ~= nil and rs[1] ~= nil then if rs ~= nil and rs[1] ~= nil then
keycounter = rs[1].value keycounter = rs[1].value