Pretty much the title, but I have a command that opens a menu. Once I close the menu, I am not able to type in the chat. I know it has something to do with NUI focus, but I’m not very experienced with these type of things, so if someone could help me out, I’d appreciate it.
SetNuiFocus(
false,false
)
p0 is the keyboard, p1 cursor
you should use this function when you close the menu
or maybe you should use isjustcontrolpressed instead of a command
I already have that in the function when the menu closes, but still the same issue.
do you close it with a nuicallback ?
look broh before i have problems with setnuifocus, the way i solved it , was with a button , i share you my code , i hope it is helpful for you
asd.lua (2.6 KB) cliente.lua (817 Bytes) fxmanifest.lua (248 Bytes) main.html (674 Bytes) navega.js (571 Bytes)
the repo if you are sneaky careful guy , the nui folder exactly
Alright, I will give it a try.
Your code helped me a lot, thanks!