Thanks for a quick update to the large hitch warning. If youâd like to make a pull request/merge on the initial git repository I wouldnât mind making the approval as I do currently have an updated script in the works using JavaScript natives and fullscreen NUI.
For now, I have no issues with your slight revamp here as long as its not posted in a release claimed as your own.
On another note I encourage you & fellow other developers with knowledge behind FiveM Natives and JavaScript ES6 to reach out to me via DM/Discord if youâd like to collaborate on tbe updated version of street Label with credit where due.
With the help from @Slyforn, we have replaced the old FiveM natives in v0.1 with a revamped NUI that runs surely a lot smoother getting rid of that awful hitch warning of 0.55ms+. This update is by far the largest update this mod has received and with the current way the mod is configured, it opens a lot more opportunities for configuring it further. Furthermore, you can expect the following from this update:
An easier way to manage the configuration file via config.lua file.
The ability to change the position and size of each HUD element.
To receive the current stable build - v1.0.0, visit the Github repository Releases page and extract the contents of the .zip file/archive to your server-data/resources/ and ensure youâve added the following to youâre server.cfg file:
With the newest version 1.0.0 there is currently no way to change the overall size of the HUD on simply one change of the config.lua file although you may adjust the size of each element of the HUD by incrementing the config.size of each element. As a note; the size of each element is calculated using the viewport-width attribute.
yikes, NUIâs are sensitive and last thing youâll want to be doing is changing the extensions of names on files for the hopes for things to work properly everything is set as it should and the only thing(s) that should be changed are those values defined the in the config.lua file.
If youâd like to take your bug to my DM Iâll see what exactly is happening as I have tested the release of this version before updating it with the intention that everything works as intended.