Skip to main content

Ui::setNotificationMessage

See [Notification Pictures](/notification-pictures) for a list of notification pictures. Pictures from this link have the same textureDict and textureName.

Also some of them needs to be requested with [Graphics::requestStreamedTextureDict](/graphics-requeststreamedtexturedict).

Syntax

```js mp.game.ui.setNotificationMessage(textureDict, textureName, flash, iconType, sender, subject); ```

Icon types

  • No Icon: 0, 4, 5, 6
  • Speech Bubble: 1
  • Message: 2
  • Friend Request: 3
  • Arrow: 7
  • RP: 8
  • Money: 9

Required Arguments

  • textureDict:
  • textureName:
  • flash:
  • iconType:
  • sender:
  • subject:

Return value

Example

Output: ![outputnative](/img/wiki/outputnative.png)

Values textureDict and textureName gives you ability to make custom notifcation pictures using: [Using DLC Packs with Custom Textures](/using-dlc-packs-with-custom-textures) Output: ![outputcustom](/img/wiki/outputcustom.png)

or using in-game sprites and textures (see [Textures](/textures)): Output: ![outputcustom2](/img/wiki/outputcustom2.png)

See also