Update server.lua

This commit is contained in:
Miho931 2025-06-09 17:39:12 +02:00
parent 16d34cebca
commit 1983435d8f

View file

@ -8,7 +8,7 @@ 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)
if rs[1] == nil then if rs[1].mods == nil then
MySQL.query("UPDATE player_vehicles SET mods = ? WHERE plate = ?", {mods.plate}) MySQL.query("UPDATE player_vehicles SET mods = ? WHERE plate = ?", {mods.plate})
test_vari[mods.plate] = true test_vari[mods.plate] = true
else else