diff --git a/bridge/qb/client/events.lua b/bridge/qb/client/events.lua index 189ff8e42..9c3f2cf4c 100644 --- a/bridge/qb/client/events.lua +++ b/bridge/qb/client/events.lua @@ -9,7 +9,7 @@ end) RegisterNetEvent('QBCore:Client:VehicleInfo', function(info) local vehicle = NetworkGetEntityFromNetworkId(info.netId) local plate = qbx.getVehiclePlate(vehicle) - local hasKeys = config.hasKeys() + local hasKeys = config.hasKeys(plate, vehicle) local data = { vehicle = vehicle, diff --git a/config/client.lua b/config/client.lua index e8ee8b1d9..f41100a37 100644 --- a/config/client.lua +++ b/config/client.lua @@ -273,7 +273,7 @@ return { }, --- Only used by QB bridge - hasKeys = function() - return exports.qbx_vehiclekeys:HasKeys() + hasKeys = function(plate, vehicle) + return exports.qbx_vehiclekeys:HasKeys(vehicle) end, } diff --git a/config/server.lua b/config/server.lua index 348cdfd30..21c903025 100644 --- a/config/server.lua +++ b/config/server.lua @@ -112,7 +112,7 @@ return { }, giveVehicleKeys = function(src, plate, vehicle) - return exports.qbx_vehiclekeys:GiveKeys(src, plate) + return exports.qbx_vehiclekeys:GiveKeys(src, vehicle) end, getSocietyAccount = function(accountName)