Left mouse button is still pressed when released in NUI Focus

Hello,

  1. Client (production/canary) and FXServer version
    Client 2612 - canary - 5603
  2. What you expected to happen
    The click considered released by the game when going back to game focus
  3. What actually happens
    The click remains active and if you have a gun, the player starts shooting
  4. Category of bug (eg. client, server, weapons, peds, native)
    Client
  5. Reproducible steps, preferably with example script(s)
  1. Hold Left Mouse button
  2. SetNuiFocus true
  3. Release Left Mouse button
  4. SetNuiFocus false
  5. Switch to a gun → the player starts to shoot as if the click was still active
local function notif(msg)
    BeginTextCommandThefeedPost('STRING')
    AddTextComponentSubstringPlayerName(msg)
    EndTextCommandThefeedPostTickerForced(0,1)  
end

notif('Hold click')
Citizen.Wait(3000) -- 3s to click
SetNuiFocus(true, true)
notif('Release click')
Citizen.Wait(3000) -- 3s to unclick
SetNuiFocus(false, false)
-- Wait any amount of time
notif('Switch to a gun')
-- The player starts shooting

Thank you ! :slight_smile: