Allow mumble voice whilst NUI enabled

Please can we get a way to allow people to talk whilst NUI is enabled?
This would help greatly and not require us to do some workaround.

Thanks.

5 Likes

i would like so much see something like this done. for now we have
SetNuiFocusKeepInput but many times we need to disable other input and we have to disableControl in a loop anyway, so adding info and colour to this post it would be nice a feature similar to SetNuiFocusKeepInput that let you choose what input index group or specific inputs want to keep, as extra if this could be synced with keymapping to allow specific mapping it would be directly awesome.

2 Likes

Agreed it would be sweet to have something like this, as Knatus said and Bubble mentioned in discord, it’s much smarter than the potentially unreliable stuff we have to do atm.

That would be great.

SetNuiFocus(true, true)
SetNuiFocusKeepInput(true)

After this you can manually disable keys you don’t want players to use/can cause conflicts

Example:

local DisabledKeys = {1, 2, 3, 4}

Citizen.CreateThread(function()
    while true do
        sleep = 3000

        if NUIOpen then
            sleep = 0
            for k,v in pairs(DisabledKeys) do
                DisableControlAction(0, v, true)
            end
        end

        Citizen.Wait(sleep)
    end
end)

Would be nice to have a built in native but for me this works regardless and isn’t too much of an issue. You can also use DisableAllControlActions and manually enable the voice key if you only need the talk key to work

3 Likes

Mumble voice suggestions (and improvements) Implemented.