forked from Simnation/Main
Update server.lua
This commit is contained in:
parent
1983435d8f
commit
b5e2d36590
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ RegisterServerEvent('mh_garage:setMods')
|
|||
AddEventHandler('mh_garage:setMods', function(mods)
|
||||
print(mods.plate)
|
||||
if test_vari[mods.plate] == true then
|
||||
Print("Fahrzeug hat bereits ein Eintrag")
|
||||
print("Fahrzeug hat bereits ein Eintrag")
|
||||
else
|
||||
MySQL.query("SELECT mods FROM player_vehicles WHERE plate = ?", {mods.plate}, function(rs)
|
||||
if rs[1].mods == nil then
|
||||
if next(rs[1].mods) == nil then
|
||||
MySQL.query("UPDATE player_vehicles SET mods = ? WHERE plate = ?", {mods.plate})
|
||||
test_vari[mods.plate] = true
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue