So if you don’t already know you can use color codes in esx notifications, such as ~b~ = blue and ~r~ = green.
Like this
ESX.Notification("~r~Hello")
And I’m using Mythic Notifications instead of the ESX.Notification, But in Mythic Notification you can’t use these color codes ~r~, and i have to use that css code down under.
<span style="color: blue;"></span>
So it looks like this (I have made the ESX.Notification function in es_extended to be mythic notification instead)
ESX.ShowNotification("<span style=color:red>No</span> Player Nearby")
So my question actually is if you or someone else knows how to convert this type of color code ~r~, so I don’t have to use the css code
To this
Hi, I have a question about how I can put a background to a word or text … I tried everything but it didn’t work, does anyone have any idea how I can do it? I leave an example here of a text with background and another without background https://gyazo.com/81487525bea04cbcbd9103fa6ad236fa
well first of all you have non escaped characters so that won’t work.
i assume you want a random quote from the list shown. you can use a lua script to randomly pick one from the list and display it inside a nui. or have the script send a new quote every 5-10 seconds.