Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local ped = GetPlayerPed( -1 )
local weapon = GetSelectedPedWeapon(ped)
--print(weapon) -- To get the weapon hash by pressing F8 in game
-- Disable reticle
ManageReticle()
-- Disable melee while aiming (may be not working)
if IsPedArmed(ped, 6) then
DisableControlAction(1, 140, true)
DisableControlAction(1, 141, true)
DisableControlAction(1, 142, true)
end
-- Disable ammo HUD
DisplayAmmoThisFrame(true)
-- Shakycam
-- Pistol
-- Infinite FireExtinguisher
if weapon == GetHashKey("WEAPON_FIREEXTINGUISHER") then
if IsPedShooting(ped) then
SetPedInfiniteAmmo(ped, true, GetHashKey("WEAPON_FIREEXTINGUISHER"))
end
end
end
end)