# Sandbox.UI.StatusBar.ShowMessage

```csharp
void ShowMessage(string text, float seconds = 5)
```

Replace the current message. Positive seconds expire automatically; zero or negative seconds
keep the message until replaced or cleared. Empty text clears it.

### Parameters

- `text` (`string`)
- `seconds` (`float`), default `5`

Declared in [Sandbox.UI.StatusBar](/api/Sandbox.UI.StatusBar).
Assembly: `Sandbox.Engine`.
