forked from Simnation/Main
Update server.lua
This commit is contained in:
parent
f39bf18e27
commit
16d34cebca
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue