citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.52k stars 2.07k forks source link

Left click input keeps getting triggered if NUI is opened while it is clicked #2508

Open Mathu-lmn opened 5 months ago

Mathu-lmn commented 5 months ago

What happened?

If I have a weapon in hand, and I use left click to open a NUI interface, it seems that even if I stop left clicking, the left click input is not reset and my character keeps shooting until I exit the NUI, and press left click again.

Expected result

Either not shoot, or shoot one bullet and not more

Reproduction steps

Take a loaded weapon in your ped's hands In the example video I use Kiminaze's context menu, but I've tried to do the same from a ScaleformUI's menu. You simply have to left click and make this trigger the opening of any NUI interface. The ped will keep shooting until you exit the NUI and press left click again

Importancy

Slight inconvenience

Area(s)

FiveM

Specific version(s)

FiveM b3095

Additional information

https://github.com/citizenfx/fivem/assets/80094438/55b6d96f-4f62-44a6-bfec-bf3f19f7093f

gottfriedleibniz commented 5 months ago

Ugh. Can you check if this is a canary-only feature?

Mathu-lmn commented 5 months ago

I believe I've seen this issue a few years ago. But never really had a way to reproduce it everytime. I can confirm this is happening on stable / release

gottfriedleibniz commented 5 months ago

I can confirm this is happening on stable / release

Are you using DirectInput or RawInput?

Mathu-lmn commented 5 months ago

Raw Input

Mathu-lmn commented 4 months ago

Would you want me to try with DirectInput ? Or is this issue being adressed ?