diff --git a/client/main.lua b/client/main.lua index 813ee33..1d3fd0c 100644 --- a/client/main.lua +++ b/client/main.lua @@ -127,14 +127,12 @@ RegisterNetEvent('qb-weapons:client:UseWeapon', function(weaponData, shootbool) TriggerEvent('qb-weapons:client:SetCurrentWeapon', nil, shootbool) currentWeapon = nil elseif weaponName == 'weapon_stickybomb' or weaponName == 'weapon_pipebomb' or weaponName == 'weapon_smokegrenade' or weaponName == 'weapon_flare' or weaponName == 'weapon_proxmine' or weaponName == 'weapon_ball' or weaponName == 'weapon_molotov' or weaponName == 'weapon_grenade' or weaponName == 'weapon_bzgas' then - TriggerEvent('qb-weapons:client:DrawWeapon', weaponName) GiveWeaponToPed(ped, weaponHash, 1, false, false) SetPedAmmo(ped, weaponHash, 1) SetCurrentPedWeapon(ped, weaponHash, true) TriggerEvent('qb-weapons:client:SetCurrentWeapon', weaponData, shootbool) currentWeapon = weaponName elseif weaponName == 'weapon_snowball' then - TriggerEvent('qb-weapons:client:DrawWeapon', weaponName) GiveWeaponToPed(ped, weaponHash, 10, false, false) SetPedAmmo(ped, weaponHash, 10) SetCurrentPedWeapon(ped, weaponHash, true)