NUI Stuck Invisible Froze on Load in randomly

Unable to move and I have a invisible NUI on my screen.

Context
I am aware due to the recent update pushed there has been fixes made to how the SetNUIFocus works, which is great, but I’ve skimmed threw majority of my code and looked at everything tieing to each other throughout the past few days, I am aware that there is a limit amount of individuals experiencing this issue, My server is not ESX, nor is it QBUS or VRP, so everyone suggesting kashacter fixes are irrelevant, but I’d really like to know if anyone else is experiencing this issue and if so, have you resolved the issue and how, I have spent hours looking into my code and checking my threads over and cant seem to understand why 4-6 times I load in there is this invisible NUI other times I’m completely fine and free to move around.

Have you experienced this problem or not?

SetNuiFocus Issue
  • I have experienced it
  • I have not experienced it

0 voters

What you could do , is start logging all the event listeners, and maybe seeing if that points you in a direction via your devtools console? I understand you know how nui focus works and what not, but is there a possibility you overlooked something and have something toggled by a bool that maybe returns a db value or something?
I haven’t had any issues with the nui aside from vue in the cef. I have however had issues where the server couldn’t return the necessary data from db quick enough and caused a check return the right value.
But as I’m sure you’ve probably checked these routes, I just figured I’d leave it as a comment incase you had overlooked it

I certainly understand you have some trouble debugging the issue. What seems to be happening is something rather unpredictable by the way you describe it; you mention some times you can move fine, some times you can’t. Unfortunately that kind of indeterminism is something you will have to debug yourself and is unrelated to the fix we have pushed. I suppose the recent changes made your issue come to the surface.

My suggestion is to continue to narrow down your resources one by one to see which one may be the cause of the culprit. Then once you find the resource, start running down how NUI is used. Something is being unpredictable. A race condition, a timing issue, or something else, it’s hard to say without knowing your code.

What I can say is that it’s definitely not worth comparing your issue to other people. The issue they were experiencing, prior to the fix we pushed, was also very different from this. Their situations were predictable, and not random. So opening a poll for this is rather combative, just stick to asking help for the problem you’re having and we’re all going to have a better time here :slight_smile:

1 Like