Does anyone know how NUI links are assigned, for example in dev tools I noticed that some of the resources have a src link of "https://cfx-nui-..." whereas others might have "nui://...", essentially I’m trying to figure out a way of determining what type of src link a script will be assigned.
Any help would be appreciated, a reference image is attached below.
Well two reasons, 1 just to increase my knowledge but also the second reason is I’m working on a script that I would like to basically make it so its drag and drop essentially, instead of duplicating stuff like item images used for inventories I’d like to just stream the image link. It all works I tested it now I’m just trying to make it easier for the user
Ah - in that case I think both are actually interchangeable as I believe both are registered in all cases, so you can use https://cfx-nui- resources using nui:// and vice versa, and as it’s just images it doesn’t matter which you use (but it may lead to a mixed content warning so you’ll generally want to use the newer https version).
Thanks for the response, when I tried to test if they were interchangeable it wasn’t working for me at least, however I found a way of doing it with ResourceMetadata