hasankortak
üye
- Katılım
- 23 Tem 2021
- Mesajlar
- 430
- Konu Yazar
- #1
m3_inventoryhud/client/client.lua
BU KODU
----------------------
Kod:
Kod:
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)
--------------
BU KOD İLE DEĞİŞTİRİN
---------------
Kod:
Kod:
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)
BU KODU
----------------------
Kod:
Kod:
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)
--------------
BU KOD İLE DEĞİŞTİRİN
---------------
Kod:
Kod:
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)