1
0
Fork 0
forked from Simnation/Main

resources/[jobs]/[civ]/mh_jobgarage/server/server.lua aktualisiert

This commit is contained in:
Miho 2025-06-25 01:22:18 +02:00
parent 7038c11f51
commit 89bb935685

View file

@ -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")