forked from Simnation/Main
resources/[jobs]/[civ]/mh_jobgarage/server/server.lua aktualisiert
This commit is contained in:
parent
7038c11f51
commit
89bb935685
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ AddEventHandler('mh_jobgarage:DeleteFromList', function(plate)
|
|||
local veh_opt = MySQL.query("SELECT * FROM mh_jobgarage WHERE plate = ?", {plate})
|
||||
|
||||
MySQL.query("SELECT * FROM vehicle_keys WHERE plate = ? and owner = ?", {plate, pedid}, function(rs)
|
||||
if rs[1] ~= nil then
|
||||
if rs ~= nil and rs[1] ~= nil then
|
||||
MySQL.query("UPDATE vehicle_keys SET count = count + ? WHERE plate = ? and owner = ?", {rs[1].count, plate, pedid},function(rowsChange)
|
||||
if rowsChange then
|
||||
TriggerClientEvent('mh_jobgarage:notify', _source, "Schlüsselkasten", "Du hast "..rs[1].count.."x Schlüssel bekommen.", "success")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue