Draw library

Since some people maintain to use scaleforms/DRAW_* natives it could be interesting a “draw library” inside fivem to:

  • be able to do more things
  • better perf
  • load external images with url

Examples (copy pasted from gmod’s wiki):

I know NUI remains better for cool menus / complex stuff
but it could be very useful for:

  • people not confortable with NUI
  • small HUD/screen effects

Example of things made with these things




uh, why does such a thing need to be built-in?

also

these exist, aren’t documented/finished (were used for an imgui-js prototype), go extend them/document them and write a framework on top of them if you wish

that + script2d ought to be sufficient however, or what specific needs do you have?

also a piece-by-piece:

what ‘more things’ would you want on top of arbitrary vertex soup/script2d natives?

there’ll always be native call overhead, if you want async rendering use nui

sounds horrible to manage seeing how messy REGISTER_STREAMING_FILE_FROM_URL or R* cloud texture manager are ;/

Nice, I’ll check what that is