altmp / altv-issues

Issues and roadmap for alt:V project
92 stars 17 forks source link

Loading remote images for RmlUI #2264

Open ToffyMTA opened 3 months ago

ToffyMTA commented 3 months ago

Description of the problem

We need the option to render remote images using RmlUI, could be used for example in nametags - displaying players avatar.

Desired solution for the problem

Possibility of using remote images via url or base64

Alternatives you considered

No response

Additional context

No response

Yiin commented 3 months ago

base64 maybe, but RmlUI is not made for complex stuff like network requests. It's also dangerous from security aspect as you can't make network requests from the client either (aside from using altv api for events/rpc). Webview is different because browsers has pretty damn good isolation.