NUI Cursor not visible

Greetings,

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.

Best regards,
Peter

Having a similar issue that I posted about here.

1 Like

Read your case, pretty unfortunate. Hope yours will resolve as well!

Can I correctly assume from your message that the cursor isn’t visible in the game view widget in the editor?

First of all, thank you for your response.

Yes, you are correct.

I have not tested it with the vanilla Cfx server, maybe it’s only a Fxdk problem.

This is normal and intended FYI.

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.