In FiveM, you can also render NUI to a runtime texture, which is called DUI for 'direct NUI'. The following natives help with this:
The native documentation contains information for each of these, but here are some creative use cases for this:
This can be used to make cinema screens, asynchronous in-game hint overlays, etc. fairly trivially.