> For the complete documentation index, see [llms.txt](https://wiki.redmodding.org/scripting-cyberpunk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.redmodding.org/scripting-cyberpunk/scripting/snippets-and-examples/user-interface/simple-screen-message.md).

# Simple Screen Message

Show a simple message popup to the player.

{% tabs %}
{% tab title="Redscript" %}

```swift
let warningMsg: SimpleScreenMessage;
warningMsg.isShown = true;
warningMsg.duration = 5.00;
warningMsg.message = "Hello, this is a simple message";
warningMsg.type = SimpleMessageType.Relic; // https://nativedb.red4ext.com/SimpleMessageType

GameInstance.GetBlackboardSystem(GetGameInstance())
  .Get(GetAllBlackboardDefs().UI_Notifications)
  .SetVariant(GetAllBlackboardDefs().UI_Notifications.WarningMessage, ToVariant(warningMsg), true);
```

{% endtab %}

{% tab title="Lua" %}

```lua
local warningMsg = SimpleScreenMessage.new()
warningMsg.isShown = true
warningMsg.duration = 5.00
warningMsg.message = "Hello, this is a simple message"
warningMsg.type = SimpleMessageType.Relic -- https://nativedb.red4ext.com/SimpleMessageType

local uiNotificationDef = GetAllBlackboardDefs().UI_Notifications

Game.GetBlackboardSystem():Get(uiNotificationDef):SetVariant(uiNotificationDef.WarningMessage, ToVariant(warningMsg), true)
```

{% endtab %}
{% endtabs %}

#### Preview

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2Fqfg9PSH5NlWNoLMRSKPH%2FUI_SimpleScreenMessage_Example.png?alt=media&amp;token=517050ec-3a61-43b1-b101-dcc38b63d1da" alt=""><figcaption></figcaption></figure>

## Different Message Types

### `SimpleMessageType.Negative`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2FWx330H2dQ3iNfWfogzOK%2FUI_SimpleScreenMessage_Negative.png?alt=media&amp;token=8d11ed6a-2671-4ae8-8b62-da4e7a4e8c03" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Neutral`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2FQyg0ZdiUstSfDBRdUhj0%2FUI_SimpleScreenMessage_Neutral.png?alt=media&amp;token=58141b7c-2e5a-4858-b8de-4b8af2c658f1" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Vehicle`

{% hint style="info" %}
The game doesn't seem to show anything with this type.
{% endhint %}

### `SimpleMessageType.Apartment`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2Fwk3oF6TshqvZYTs8mMI5%2FUI_SimpleScreenMessage_Apartment.png?alt=media&amp;token=3f3ab846-2545-46de-8999-d0a9d0acd930" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Relic`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2FHaSx3KdjheVuJB56EWN0%2FUI_SimpleScreenMessage_Relic.png?alt=media&amp;token=e5893268-4c69-43f0-89e7-e130c80b9cbb" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Money`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2FZ07jDt6Z5v00ZDY6sdLT%2FUI_SimpleScreenMessage_Money.png?alt=media&amp;token=d686b2e7-2fe6-4181-b634-35beb3faa9c9" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Reveal`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2F2T2y5DV3Pn3j16zjtvhE%2FUI_SimpleScreenMessage_Reveal.png?alt=media&amp;token=ea4d8ea5-967c-4c6f-9a1c-3f5d49d24209" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Boss`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2F9kpf0Hcerzd0ln1wVFkT%2FUI_SimpleScreenMessage_Boss.png?alt=media&amp;token=cd17b584-321d-4257-8a98-2d9ce0b90ad7" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Twintone`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2FdiCd9p5abFNiYSNGTmY8%2FUI_SimpleScreenMessage_Twintone.png?alt=media&amp;token=a4de1d73-dc48-4bc8-ad07-4cfc55f1ee9e" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Police`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2F0eZ1PwF7ezFxyMCzpDgk%2FUI_SimpleScreenMessage_Police.png?alt=media&amp;token=46bf5b86-c57c-4573-a6ca-d6394c08db5d" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Autodrive`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2Fm8Xuoos0tOHnE5WZstJz%2FUI_SimpleScreenMessage_Autodrive.png?alt=media&amp;token=9b6dc77f-e85e-4286-8039-0204de53e5b3" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.TwintoneNegative`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2FSMCyqcvFsUPjgj9AzzDc%2FUI_SimpleScreenMessage_TwintoneNegative.png?alt=media&amp;token=a3d1943e-0d7b-4021-ae0c-4e94a5945232" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.Connection`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2FzsMuWlPRXTHUq0V4fAFD%2FUI_SimpleScreenMessage_Connection.png?alt=media&amp;token=1dc46f53-76cc-4eff-a812-c900d5908df1" alt=""><figcaption></figcaption></figure>

### `SimpleMessageType.DelamainTaxi`

<figure><img src="https://1927068511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffwsaoju1TBAUvMpI6NIw%2Fuploads%2Ff3duqQKbCjSZGCxHqVf7%2FUI_SimpleScreenMessage_DelamainTaxi.png?alt=media&amp;token=aad9768d-1a4e-41f3-9196-e2641dd62074" alt=""><figcaption></figcaption></figure>
