I have been using NUI to create my UI-s. Up until now I did not had any problems with it, it worked perfectly fine. I had a week break from coding from the 5th of october till the 10th of october. When I left my code SetNuiFocus() was working normally, although when I got back, I fired up the server(without any changes to the code, with the latest Fxdk update) and SetNuiFocus() was not working properly. The NUI focus truns on, I have the movement lock and everything, I also am able to interact with every UI, it registers the highlighting of texts and it registers the click as well, although the cursor is not visible at all. Fxdk ver.: 4752
The code which sets the NUI focus:
function showUICursor(state)
focus = state
SetNuiFocus(focus, focus)
end
exports("showUICursor", showUICursor)
Ps.: I have tried SetNuiFocus(true, true) at a completly new resource during client startup but the problem remais the same, active nui cursor which is not visible but usable.
Thank you in advance for looking into the problem.
Again, everything about cursor flow works fine as far as I can test (other than the issue here which is about game view, please if it’s not about game view, don’t hijack this topic!), so providing full reproduction steps with actual code and environment preconditions like screen mode and game input setting in a separate topic would be really helpful.
Also the only change was in showing and hiding the cursor, ‘moving randomly’ (sure it’s not when changing focus?) and ‘not capturing’ when in focus mode (intended!) are not related to this change and are just normal behavior.