Update server.lua

This commit is contained in:
Miho931 2025-06-09 17:38:26 +02:00
parent f39bf18e27
commit 16d34cebca

View file

@ -8,7 +8,12 @@ AddEventHandler('mh_garage:setMods', function(mods)
Print("Fahrzeug hat bereits ein Eintrag") Print("Fahrzeug hat bereits ein Eintrag")
else else
MySQL.query("SELECT mods FROM player_vehicles WHERE plate = ?", {mods.plate}, function(rs) MySQL.query("SELECT mods FROM player_vehicles WHERE plate = ?", {mods.plate}, function(rs)
print(json.encode(rs[1])) if rs[1] == nil then
MySQL.query("UPDATE player_vehicles SET mods = ? WHERE plate = ?", {mods.plate})
test_vari[mods.plate] = true
else
test_vari[mods.plate] = true
end
end) end)
end end
end) end)