Yes, this requires OpenIV
- Use an existing ytd (or create a new one) i.e. https://bitbucket.org/d0p3t/worldeventsm/src/master/Assets/char_we.ytd
- Put it somewhere in your GTA folder and open it with OpenIV
- Go into edit mode and double click on it to edit it. You will see a window pop up with the contents of the ytd
- Hit Import (I think on the top left of the window) and browse to your image (must be png I believe) and hit OK.
- Once done, exit the window and drag + drop it from OpenIV -> to the stream folder of your resource
- Use it with this native (with the example linked about) https://runtime.fivem.net/doc/natives/#_0x1CCD9A37359072CF
int _SET_NOTIFICATION_MESSAGE(char* picName1, char* picName2, BOOL flash, int iconType, char* sender, char* subject);
where picName1 is CHAR_WE
, picName2 = the name of the picture that you put in (in the example there’s a picture called REBOOTBOTTOM
).
You can put as many images in the ytd as you like
Don’t forget to draw it with DrawNotification(blink, showInBrief)
https://runtime.fivem.net/doc/natives/#_0x2ED7843F8F801023
C# example (but it’s just natives so very similar in Lua)
SetNotificationTextEntry("STRING");
AddTextComponentString("My text");
SetNotificationBackgroundColor(1); // more colors available check natives DB
SetNotificationMessage("CHAR_WE", "REBOOTBOTTOM", true, 1, "Some Title", "Some Subtitle"); // 1 can be replaced by others. Check native
DrawNotification(false, true);