1628 deki kodu bunla değiştirdim
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
if fastenabled then
if IsDisabledControlJustReleased(1, 157) then
if fastItems[1] ~= nil then
if string.match(fastItems[1].name, 'WEAPON_') and not Config.ItemWeapons.Enabled then
if GetSelectedPedWeapon(PlayerPedId()) == GetHashKey(fastItems[1].name) then
SetCurrentPedWeapon(PlayerPedId(), "WEAPON_UNARMED", true)
currentFast = 0
else
SetCurrentPedWeapon(PlayerPedId(), fastItems[1].name, true)
SendNotify('use', fastItems[1].name, fastItems[1].label, 1)
currentFast = 1
end
else
if fastItems[1].name ~= nil then
TriggerServerEvent("esx:useItem", fastItems[1].name)
SendNotify('use', fastItems[1].name, fastItems[1].label, 1)
end
end
end
end