Hello! How are you? I am writing here if someone could help me to disable the progressbar when reloading the weapon, that is to say that when I press R it reloads immediately without the need for this bar to appear. Thanks!

There is no weapon reload event, so you can check if a player equiped a weapon with

IsPlayerArmed = GetSelectedPedWeapon(PlayerPedId()) ~= GetHashKey('WEAPON_UNARMED');

This will return true or false (BOOL) wheater player equiped a weapon or not. When the Player equiped a weapon then check if the player press the R Key:

IsControlJustReleased(0, 80)

See all controls here Controls - Cfx.re Docs

local IsPlayerArmed = GetSelectedPedWeapon(PlayerPedId()) ~= GetHashKey('WEAPON_UNARMED');

if IsPlayerArmed and IsControlJustReleased(0, 80) then
  -- Deactivate your Progressbar
end

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.