System::notify

From RAGE Multiplayer Wiki
Revision as of 06:32, 17 April 2020 by MrPancakers2 (talk | contribs) (Created page with "{{ClientsideJsFunction}} Sends the user a Windows notification. {{JSContainer| == Syntax == <pre> mp.system.notify({ title, text, attribute, duration, silent }); </pre> ===...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



Sends the user a Windows notification.

JavaScript Syntax

Syntax

mp.system.notify({ title, text, attribute, duration, silent });

Parameters

  • title String
  • text String
  • attribute String
  • duration Int
  • silent Boolean

Examples

Example description

mp.events.add('AFK_Reminder', () => {
    mp.system.notify({
        title: 'AFK Timer',
        text: `You have 5 minutes until you're kicked from the server.`,
        attribute: 'Test Roleplay',
        duration: 5,
        silent: true
    });
});


See also