Skip to content

Commit

Permalink
css re-write + more
Browse files Browse the repository at this point in the history
  • Loading branch information
GhzGarage committed Nov 4, 2023
1 parent fbc05f6 commit 3031405
Show file tree
Hide file tree
Showing 4 changed files with 499 additions and 1,030 deletions.
4 changes: 4 additions & 0 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ end
---@param itemdata table Data of an item
---@return table attachments
local function FormatWeaponAttachments(itemdata)
if not itemdata.info or not itemdata.info.attachments or #itemdata.info.attachments == 0 then
return {}
end
local attachments = {}
local weaponName = itemdata.name
local WeaponAttachments = exports['qb-weapons']:getConfigWeaponAttachments()
if not WeaponAttachments then return {} end
for attachmentType, weapons in pairs(WeaponAttachments) do
local componentHash = weapons[weaponName]
if componentHash then
Expand Down
Loading

0 comments on commit 3031405

Please sign in to comment.