Log in to reply

Is it possible to add a custom image in the notification image field?

  • I looked in the NotificationIcon enumerator but unfortunately I didn't find the image I wanted.

    I'm wondering if it's possible to add a custom image to the notifications, I saw in the scripthookvdotnet documentation, that it's possible to add a Sprite personalizado through the "GTA.UI" class, but I have no idea how to link the notification image.

  • @Niziul Are you just trying to replace a texture? Unless I'm misunderstanding you, the images should be here:


    just replace the image with OpenIV and/or package it if you're making a mod.

  • @JohnFromGWN I actually want to add an image without changing the others. So that I can use it in notifications, like these here;

  • @Niziul Ok so extract a ytd, change the texture, rename it and import it back, no?
    I've done this with sound files, created and added my own, but wasn't able to create a vanilla vehicle.

    The pics you sent are server-side. Are you doing this GTAO?

    You might want to check this thread.

  • @JohnFromGWN I'll try to see if it works! I'm not doing "GTAO" no, I'm using scripthookvdotnet, I'm using the Notification class to display the message. Image

  • @Niziul I think you can only replace it. Syntax calls for something which must be included in the enum. For example Abigail.

  • @JohnFromGWN Brother, impressive it worked with the replacement of the photo, which in this example I replaced the abigail photo by a flaticon icon, but can this method conflict with other mods that use abigail's image? But it helped me a lot, thanks!

    alt text

  • @Niziul It's just an image, so instead of a conflict you would just have the new image appear.

  • @JohnFromGWN

    If anyone is following this thread and interested, for this to work you need to have your notifications for the phone (and only the phone is mandatory) set to on. You can disable all elements of your HUD through your settings and turn off all notifications, but not the phone if you want this to display - either ontick or keypress.

  • @Niziul
    Hey , If you want/need here is another way to do that, this one is a notification above map :)

  • @Kangouroux6 Yes, but the code above does exactly that, it puts the notification above the map and only uses 1 line of code.

  • @JohnFromGWN Yes your right ! But It need to replace original games files, here abigail icon / propertyarmstrafficking, with the other way it add new texture ;)

  • @Kangouroux6 Ok got it. BTW, you can create your own sprite ytd files with your own images inside them.

    I don't know if you can do that with notification icons. That would avoid having to do the replace. But in your case, I understand you needed to change the game file. It's all good.

  • @JohnFromGWN I think you've miss something or maybe i haven't be clear enough :P
    If you see my linked tutorial you will see, creating new ytd is needed to use custom icon, (Or need a replacement) All of this is explained in the tuto, how & where to create .ytd with .dds picture in :)
    So I never needed to replace any texture in the game to use custom ones ;)
    It's even the reason why i posted here, to help Niziul to use custom texture whitout replacing originals one
    AFAIK (& use) custom texture is possible with notifications icon, (See picture1)
    & for lemonUI / NativeUI banner (See picture2) and for Menu Badges of those 2 (See picture2)
    I promise i'll stop polluting your post @Niziul :P

  • @Kangouroux6 My mistake. I read your comment incorrectly. Thought you were saying you wanted to replace but that 's not what your wrote. Sorry for the error.

Log in to reply

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.