Initial support for weapon components

This commit is contained in:
ElPumpo
2018-12-29 02:10:37 +01:00
parent e5124676be
commit caec057954
5 changed files with 118 additions and 62 deletions
-15
View File
@@ -174,21 +174,6 @@ ESX.GetItemLabel = function(item)
end
end
ESX.GetWeaponList = function()
return Config.Weapons
end
ESX.GetWeaponLabel = function(name)
name = string.upper(name)
local weapons = ESX.GetWeaponList()
for i=1, #weapons, 1 do
if weapons[i].name == name then
return weapons[i].label
end
end
end
ESX.CreatePickup = function(type, name, count, label, player)
local pickupId = (ESX.PickupId == 65635 and 0 or ESX.PickupId + 1)