Hello,
- Client (production/canary) and FXServer version
Client 2612 - canary - 5603 - What you expected to happen
The click considered released by the game when going back to game focus - What actually happens
The click remains active and if you have a gun, the player starts shooting - Category of bug (eg. client, server, weapons, peds, native)
Client - Reproducible steps, preferably with example script(s)
- Hold Left Mouse button
- SetNuiFocus true
- Release Left Mouse button
- SetNuiFocus false
- 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 !