forked from Simnation/Main
resources/[jobs]/[civ]/mh_jobgarage/server/server.lua aktualisiert
This commit is contained in:
parent
454604e023
commit
f94cf2450c
1 changed files with 1 additions and 1 deletions
|
@ -238,7 +238,7 @@ QBCore.Functions.CreateCallback('mh_jobgarage:CallOwnerVehicles', function(sourc
|
||||||
local Player = QBCore.Functions.GetPlayer(_source)
|
local Player = QBCore.Functions.GetPlayer(_source)
|
||||||
local pedid = Player.PlayerData.citizenid
|
local pedid = Player.PlayerData.citizenid
|
||||||
local veh = {}
|
local veh = {}
|
||||||
MySQL.query("SELECT * FROM player_vehicles", {}, function(rs)
|
MySQL.query("SELECT * FROM player_vehicles where citizenid = ?", {pedid}, 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
|
||||||
MySQL.query("SELECT count FROM vehicle_keys WHERE owner = ? AND plate = ?", {pedid, v.plate}, function(keycount)
|
MySQL.query("SELECT count FROM vehicle_keys WHERE owner = ? AND plate = ?", {pedid, v.plate}, function(keycount)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue