renzuzu 8eca1698cb feat(web/meu): support images as icons in context and list menu (#230)
* feat: Support image Tag in buttons

in my server. ox_lib is heavily used.
most of sample use cases for this is.
Food image,
Ingredients,
Vehicle Parts,
etc..

i believe font awesome is not enough for some use cases.

i did suggest this on v3 pending PR.
but it seems gets ignored.

here i am gonna try to push this PR.

to use this.
icon must be not existing in the options.

if both icon and image is in options, nothing will appear.

image in metadata will still appear normaly.

* tweak(web/menu): resize render image comparable to FA

* refactor(web/context): use icon prop for images

* refactor(web/list): use icon prop for images

---------

Co-authored-by: Luke <39926192+LukeWasTakenn@users.noreply.github.com>
2023-02-19 13:53:48 +01:00
2022-12-16 10:26:28 +01:00
2023-02-17 15:54:20 +01:00
2022-11-24 17:02:03 +11:00
2023-02-17 15:54:20 +01:00
2023-02-17 15:54:20 +01:00
2022-07-05 05:17:52 +10:00
2022-08-15 20:48:37 +10:00


Lua Library for FiveM

FXServer provides its own system for including files, which we use to load this resource in the fxmanifest via

shared_script '@ox_lib/init.lua'

server.cfg

add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow

License

LGPL-3.0-or-later

Description
No description provided
Readme 5.7 MiB
Languages
Lua 62.5%
TypeScript 35.6%
CSS 1.7%