M3_İNVENTORYHUD +1 MERMİ SORUNU ÇÖZME
m3_inventoryhud/client/client.lua İçerisinden
BU KODU ARATINIZ ;
m3_inventoryhud/client/client.lua İçerisinden
BU KODU ARATINIZ ;
ESX.TriggerServerCallback('m3:inventoryhud:server:getAmmoCount', function(ammoCount)
GiveWeaponToPed(playerPed, hash, 1, false, true)
if checkh[weapon] == hash then
SetPedAmmo(playerPed, hash, 1)
elseif Config.ItemWeapons.FuelCan == hash or 'WEAPON_FIREEXTINGUISHER' == name then
SetPedAmmo(playerPed, hash, 4500)
elseif not ammoCount then
SetPedAmmo(playerPed, hash, 1)
elseif ammoCount < 1 then
SetPedAmmo(playerPed, hash, 1)
else
SetPedAmmo(playerPed, hash, ammoCount)
end
end, hash)
VE BU KOD İLE DEĞİŞTİRİN ;
ESX.TriggerServerCallback('m3:inventoryhud:server:getAmmoCount', function(ammoCount)
GiveWeaponToPed(playerPed, hash, 1, false, true)
if checkh[weapon] == hash then
SetPedAmmo(playerPed, hash, 1)
elseif Config.ItemWeapons.FuelCan == hash or 'WEAPON_FIREEXTINGUISHER' == name then
SetPedAmmo(playerPed, hash, 4500)
elseif not ammoCount then
SetPedAmmo(playerPed, hash, 1)
elseif ammoCount < 0 then
SetPedAmmo(playerPed, hash, 1)
else
SetPedAmmo(playerPed, hash, ammoCount)
end
end, hash)
İYİ GÜNLER 'Efe Ayd1n#3562