Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Scullyy committed Apr 20, 2024
1 parent 1aaf5b5 commit 29f4d4e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/evidence.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
local config = require 'config.client'
local currentStatusList = {}
local casings = {}
local currentCasing = nil
Expand All @@ -8,6 +7,8 @@ local fingerprints = {}
local currentFingerprint = 0
local shotAmount = 0

local qbShared = require 'shared.main'

local statusList = {
fight = Lang:t('evidence.red_hands'),
widepupils = Lang:t('evidence.wide_pupils'),
Expand Down Expand Up @@ -243,9 +244,6 @@ local function drawEvidenceIfInRange(args)
end
end

local WeaponConfig = require '@ox_inventory.data.weapons'
local Weapons, AmmoTypes = WeaponConfig.Weapons, WeaponConfig.Ammo

--- draw 3D text on the ground to show evidence, if they press pickup button, set metadata and add it to their inventory.
CreateThread(function()
while true do
Expand All @@ -258,7 +256,7 @@ CreateThread(function()
metadata = {
type = Lang:t('info.casing'),
street = getStreetLabel(casings[currentCasing].coords),
ammolabel = AmmoTypes[Weapons[casings[currentCasing].type:upper()].ammoname].label,
ammolabel = qbShared.AmmoTypes[qbShared.WeaponHashes[casings[currentCasing].type].ammoname].label,
ammotype = casings[currentCasing].type,
serie = casings[currentCasing].serie
},
Expand Down

0 comments on commit 29f4d4e

Please sign in to comment.