Not released yet. These pages are written from the code of
manniche_notify and can change before the release.config.lua
All options are in config.lua.
Display
| Option | Default | What it does |
|---|---|---|
Config.position | 'top-right' | Where messages show. Values: 'top-right', 'top-left', 'top', 'bottom-right', 'bottom-left', 'bottom', 'center-right', 'center-left'. A script can pick another spot for its own message. |
Config.duration | 5000 | How long a message stays, in milliseconds, when the sending script does not say. Values are limited to 1000 to 30000. |
Config.max | 5 | Most messages in each spot. The oldest goes first. |
Config.sound | true | Plays a short game sound with each message. |
Colours
Colours are set per type in Config.colors.
| Option | Default | What it does |
|---|---|---|
info | '#5b9dff' | Colour of info messages. |
success | '#3ecf8e' | Colour of success messages. |
warning | '#f5b544' | Colour of warning messages. |
error | '#ff5c5c' | Colour of error messages. |
ESX
| Option | Default | What it does |
|---|---|---|
Config.replaceEsx | true | Shows ESX's own messages here instead of in esx_notify. Needs esx_notify stopped. See Installation. |
Text handling
These limits are fixed in the code.
- GTA colour codes (such as
~r~) and HTML tags are removed.~n~,~br~and<br>become line breaks. - Title is cut at 80 characters, description at 500, id at 64.
- A message with no title and no description is ignored.