Skip to content

Commit

Permalink
Merge pull request #610 from Alivemonstor/weapon
Browse files Browse the repository at this point in the history
weapon check convention
  • Loading branch information
GhzGarage authored Jan 3, 2025
2 parents 48ed1ed + 8c5bc8b commit 9cda26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ function AddItem(identifier, item, amount, slot, info, reason)
combinable = itemInfo.combinable
}

if QBCore.Shared.SplitStr(item, '_')[1] == 'weapon' then
if itemInfo.type == 'weapon' then
if not inventory[slot].info.serie then
inventory[slot].info.serie = tostring(QBCore.Shared.RandomInt(2) .. QBCore.Shared.RandomStr(3) .. QBCore.Shared.RandomInt(1) .. QBCore.Shared.RandomStr(2) .. QBCore.Shared.RandomInt(3) .. QBCore.Shared.RandomStr(4))
end
Expand Down

0 comments on commit 9cda26b

Please sign in to comment.