forked from Simnation/Main
Update server.lua
This commit is contained in:
parent
dd0d60c6af
commit
d81961fd2f
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ QBCore.Functions.CreateCallback('mh_garage:storedVehicle', function(source, cb,
|
|||
if Player.Functions.GetMoney('bank', zone.price) then
|
||||
MySQL.query("SELECT * FROM player_vehicles WHERE citizenid = ? AND plate = ?", {Player.PlayerData.citizenid, veh.plate}, function(rs)
|
||||
if rs[1] ~= nil then
|
||||
MySQL.query("UPDATE player_vehicles SET garage = ?, parking = ? WHERE plate = ?", {zone.name, true, veh.plate})
|
||||
MySQL.query("UPDATE player_vehicles SET garage = ?, parking = ?, mods = ? WHERE plate = ?", {zone.name, true, json.encode(veh), veh.plate})
|
||||
DelVehParking(veh.plate)
|
||||
cb({
|
||||
status = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue