altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Loading remote images for RmlUI

Open ToffyMTA opened this issue 1 year ago • 1 comments

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

ToffyMTA avatar Mar 19 '24 08:03 ToffyMTA

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.

Yiin avatar Mar 25 '24 17:03 Yiin