GTA V version: Latest Up to date: Yes Legit or Pirate copy: Legit Purchased where - Steam/Rockstar Launcher/Epic: Steam Windows version: 10 Did you try to delete content_index.xml and try again? Yes System specifications: NVidia 2070, 48 GB RAM, 3.8 GHz i7 CitizenFX crash zip file (‘Save information’ on a crash): No Crash logs/CitizenFX_log files: Nothing Relevant .dmp files/report IDs: No Dump
Important parts
What is the issue you’re having?
Restarting any resource during play will cause all NUI elements to freeze for an exponentially increasing time. Not sure if it increases everytime a resource is restarted, or if it just gets longer over time.
What are you trying to do?
Restart any resource that uses NUI
What have you tried already to fix the issue?
Tried the UI lag fix setting, turned on/off v-sync, reinstalled, restarted
What did you do to get this issue?
Restarted any resource
What server did you get this issue on? Be specific and name some, ‘all of them’ by itself isn’t useful!
Localhost
Additional comments
This is confirmed to be coming from the chat resource. Whenever any resource is restarted, everything that uses a NUI is frozen and can’t be interacted with. This period of time gets longer and longer either based on how many restarts are issued or as your time in game goes on (unsure which one as they are almost mutually inclusive).
Restarting the ‘chat’ resource resolves the problem until more restarts/time has passed.
Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.
Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.
To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.
Yeah, this was found and reported a while ago in fact, but it hasn’t been fixed yet since servicing the chat resource is difficult at this time, and an earlier attempt at an underlying fix (moving NUI frames to be independent from one another) led to compatibility issues as well as issues with servers having 100+ NUI resources and players with lower-end PCs.
We’ve been working on moving the chat resource into the server distribution itself but this is a little bit risky so it’s not enabled by default and somewhat pending validation from users… but at that point we’ll finally be able to get some of the backlog there worked on.
Underlying cause here is likely the list of commands to add as suggestion growing with every restarted resource and therefore leading to longer and longer events being sent to the UI frame each time - command auto-completion is also intended to be refactored somewhen as well so this is even more complex a thing.
Awesome! Thanks for the response d-bubble. I did my best to look for it before posting.
I will work on reducing the command suggestions - I think you’re spot on for that. I have QBCore loaded and it’s sending a 12MB event to chat every time a resource is reloaded.
If you want to try using it, use server 6493 or newer (with this fix in) and launch the server with resources_useSystemChat true set, which will use the chat resource from system-resources rather than from the server data directory.
Build 6497 and resources_useSystemChat true appears to resolve the problem. If anything, the NUI is definitely more snappy. I’ve spent a good 30 minutes in the game, restarting a bunch of resources and working on one of my scripts, and the only issue I’ve noticed is the chat messages I send may lag a bit, but opening the text entry and running commands is instantaneous.
If the problem still exists in this version/build, then it’s not nearly as bad as my original report.
Since this is just an issue when restarting resources, this may be a good fix for dev servers and production servers can just go with the stable builds.