Add files via upload

This commit is contained in:
KandaSoranyan
2018-02-19 03:30:02 +01:00
committed by GitHub
parent 3ba4cd8e9e
commit eb42f346b2
8 changed files with 143 additions and 32 deletions
+5 -5
View File
@@ -309,7 +309,7 @@ end)
RegisterServerEvent('esx:giveInventoryItem')
AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCount)
AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCount,ammotogive)
local _source = source
@@ -366,10 +366,10 @@ AddEventHandler('esx:giveInventoryItem', function(target, type, itemName, itemCo
end
elseif type == 'item_weapon' then
sourceXPlayer.removeWeapon(itemName)
targetXPlayer.addWeapon(itemName, itemCount)
local weaponLabel = itemName
for i=1, #Config.Weapons, 1 do
@@ -523,10 +523,10 @@ AddEventHandler('esx:removeInventoryItem', function(type, itemName, itemCount)
xPlayer.removeWeapon(itemName)
if Config.EnableWeaponPickup then
TriggerClientEvent('esx:pickupWeapon', _source, weaponPickup, weaponName)
TriggerClientEvent('esx:pickupWeapon', _source, weaponPickup, weaponName,itemCount)
end
TriggerClientEvent('esx:showNotification', _source, _U('threw') .. ' x1 ~g~' .. weaponLabel)
TriggerClientEvent('esx:showNotification', _source, _U('threw') .. ' x1 ~g~' .. weaponLabel .. _U('withammo').. '~r~' .. itemCount .. _U('ammogiven'))
end)