Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pass vehicleId to vehiclekeys exports #585

Merged
merged 4 commits into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bridge/qb/client/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions config/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ return {
},

--- Only used by QB bridge
hasKeys = function()
return exports.qbx_vehiclekeys:HasKeys()
hasKeys = function(plate, vehicleId)
return exports.qbx_vehiclekeys:HasKeys(vehicleId)
D4isDAVID marked this conversation as resolved.
Show resolved Hide resolved
end,
}
2 changes: 1 addition & 1 deletion config/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down