forked from Simnation/Main
Update server.lua
This commit is contained in:
parent
6b3c02f876
commit
a46b5450b7
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ QBCore.Functions.CreateCallback('mh_garage:retrieveOwnerVehicle', function(sourc
|
||||||
local pedid = Player.PlayerData.citizenid
|
local pedid = Player.PlayerData.citizenid
|
||||||
local veh = {}
|
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
|
if rs ~= nil and rs[1] ~= nil then
|
||||||
for k, v in pairs (rs) do
|
for k, v in pairs (rs) do
|
||||||
table.insert(veh, {
|
table.insert(veh, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue