DocsNotify

Configuration

Every option in config.lua.

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

OptionDefaultWhat 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.duration5000How long a message stays, in milliseconds, when the sending script does not say. Values are limited to 1000 to 30000.
Config.max5Most messages in each spot. The oldest goes first.
Config.soundtruePlays a short game sound with each message.

Colours

Colours are set per type in Config.colors.

OptionDefaultWhat 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

OptionDefaultWhat it does
Config.replaceEsxtrueShows 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.