forked from Simnation/Main
Update server.lua
This commit is contained in:
parent
fd474d93ca
commit
f6eb5db14e
1 changed files with 1 additions and 2 deletions
|
@ -43,8 +43,7 @@ AddEventHandler('mh_jobgarage:DeleteFromList', function(plate)
|
|||
local _source = source
|
||||
local Player = QBCore.Functions.GetPlayer(_source)
|
||||
local pedid = Player.PlayerData.citizenid
|
||||
local keycounter = await(MySQL.query("SELECT value FROM mh_jobgarage WHERE plate = ?", {plate}))
|
||||
keycounter = (keycounter and keycounter[1]) and keycounter[1].value or 0
|
||||
local keycounter = MySQL.Sync.fetchScalar("SELECT value FROM mh_jobgarage WHERE plate = ?", {plate}) or 0
|
||||
|
||||
if keycounter == nil then
|
||||
TriggerClientEvent('mh_jobgarage:notify', _source, "Schlüsselkasten", "Fehler, versuche es Später erneut.", "inform")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue