1
0
Fork 0
forked from Simnation/Main

Update server.lua

This commit is contained in:
Miho931 2025-06-25 20:41:13 +02:00
parent 6b3c02f876
commit a46b5450b7

View file

@ -83,7 +83,7 @@ QBCore.Functions.CreateCallback('mh_garage:retrieveOwnerVehicle', function(sourc
local pedid = Player.PlayerData.citizenid
local veh = {}
MySQL.query("SELECT * FROM player_vehicles WHERE owner = ? and garage = ?", {pedid, zone}, function(rs)
MySQL.query("SELECT * FROM player_vehicles WHERE citizenid = ? and garage = ?", {pedid, zone}, function(rs)
if rs ~= nil and rs[1] ~= nil then
for k, v in pairs (rs) do
table.insert(veh, {