forked from Simnation/Main
resources/[jobs]/[civ]/mh_jobgarage/server/server.lua aktualisiert
This commit is contained in:
parent
3bf524bea7
commit
5aa8bde94c
1 changed files with 233 additions and 233 deletions
|
@ -21,7 +21,7 @@ QBCore.Functions.CreateCallback('mh_jobgarage:AddVehicleToJob', function(source,
|
|||
local pedid = Player.PlayerData.citizenid
|
||||
local pedjob = Player.PlayerData.job.name
|
||||
|
||||
local isOwner = MySQL.query("SELECT * FROM player_vehicles WHERE citizenid = ? and plate = ?", {pedid, plate})
|
||||
local isOwner = CheckVehicleOwner(pedid, plate)--MySQL.query("SELECT * FROM player_vehicles WHERE citizenid = ? and plate = ?", {pedid, plate})
|
||||
local haveKeys = MySQL.query("SELECT * FROM vehicle_keys WHERE owner = ? and plate = ?", {pedid, plate})
|
||||
|
||||
if isOwner and haveKeys then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue