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):
- draw.DrawText
- draw.GetFontHeight
- draw.NoTexture
- draw.RoundedBox
- draw.RoundedBoxEx
- draw.SimpleText
- draw.SimpleTextOutlined
- draw.Text
- draw.TextShadow
- draw.TexturedQuad
- draw.WordBox
- surface.CreateFont
- surface.DisableClipping
- surface.DrawCircle
- surface.DrawLine
- surface.DrawOutlinedRect
- surface.DrawPoly
- surface.DrawRect
- surface.DrawText
- surface.DrawTexturedRect
- surface.DrawTexturedRectRotated
- surface.DrawTexturedRectUV
- surface.GetAlphaMultiplier
- surface.GetDrawColor
- surface.GetHUDTexture
- surface.GetTextColor
- surface.GetTextSize
- surface.GetTextureID
- surface.GetTextureSize
- surface.PlaySound
- surface.ScreenHeight
- surface.ScreenWidth
- surface.SetAlphaMultiplier
- surface.SetDrawColor
- surface.SetFont
- surface.SetMaterial
- surface.SetTextColor
- surface.SetTextPos
- surface.SetTexture
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