Update server.lua

This commit is contained in:
Miho931 2025-06-09 17:23:54 +02:00
parent a3ed8cd4e0
commit a700576bb0

View file

@ -3,8 +3,7 @@ local test_vari = {}
RegisterServerEvent('mh_garage:setMods')
AddEventHandler('mh_garage:setMods', function(mods)
print(json.encode(mods))
if test_vari ~= nil then
if test_vari then
for k, v in pairs(test_vari) do
if v.plate ~= mods.plate then
MySQL.query("SELECT * FROM player_vehicles WHERE plate = ?", {mods.plate}, function(rs)