Skip to content

Commit

Permalink
Update evidence.lua
Browse files Browse the repository at this point in the history
Added Life @LifeCore-Development new QB-Inventory Patch
  • Loading branch information
RazerGhost authored Jun 12, 2024
1 parent 8ededfc commit ed423c8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions [hi-dev - qb-policejob] REPLACE THESE/evidence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ RegisterNetEvent('police:client:SelectEvidence', function(Data)
else
local EvidenceBagsMenu = {}
if Config.Inventory == 'qb-inventory' or Config.Inventory == 'ps-inventory' then
for _, n in pairs(List) do
EvidenceBagsMenu[#EvidenceBagsMenu + 1] = {
opthead = n.label,
optdesc = Lang:t('info.select_for_examine_b', { street = n.info.street, label = n.info.label, slot = n.slot }),
opticon = 'caret-right',
optparams = {
event = 'police:client:ExamineEvidenceBag',
args = { Item = n, slot = n.slot, label = n.info.label }
}
}
end
elseif Config.Inventory == 'new-qb-inventory' then
for _, n in pairs(List) do
EvidenceBagsMenu[#EvidenceBagsMenu + 1] = {
opthead = n.label,
Expand Down

0 comments on commit ed423c8

Please sign in to comment.