> For the complete documentation index, see [llms.txt](https://mdev-scripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mdev-scripts.gitbook.io/docs/assets-and-guides/notify-script/how-to-install.md).

# how to install

{% hint style="info" %}
This script is standalane. It works on every server!
{% endhint %}

### How can i use the notify in my scripts? <a href="#how-can-i-edit-the-notify-in-any-other-scripts" id="how-can-i-edit-the-notify-in-any-other-scripts"></a>

Every script uses a notify function. So you have to change the notify event / export in all the scripts, which not use the mdev-notify or the default ESX / QB notify.

**How does it work?**

What is the source, title, message, time, type?

* Source (You have to add the source in server side.)
* Title (The title of the notify message)
* Message (The message of the notify message)
* Time (Time of visibility of the notify)
* Type (info | success | warning | error)\
  \
  ***`Server side`***

  ```
  TriggerClientEvent('mdev-notify:SendNotify', source, 'title', 'message', time, 'type')
  ```

  ***`Client side`***

  ```
  exports['mdev-notify']:SendNotify('title', 'message', time, 'type')
  ```

  ### &#x20;<a href="#how-to-change-the-notify-in-your-server-to-brutal-notify" id="how-to-change-the-notify-in-your-server-to-brutal-notify"></a>

  ### How to make our notify your framework default? <a href="#how-to-change-the-notify-in-your-server-to-brutal-notify" id="how-to-change-the-notify-in-your-server-to-brutal-notify"></a>

  #### ESX <a href="#esx" id="esx"></a>

  **`es_extended/client/functions.lua`**

  **Replace this function:**

  ```
  function ESX.ShowNotification(message, type, length)
      exports['mdev-notify']:SendNotify('M Development', message, length, type)
  end
  ```

  #### QBCORE <a href="#qbcore" id="qbcore"></a>

  **`qb-core/client/functions.lua`**

  **Replace this function:**

  <pre><code><strong>function QBCore.Functions.Notify(text, texttype, length)
  </strong>    if type(text) == "table" then
          local mdev-text = text.text or 'Placeholder'
          local caption = text.caption or 'Placeholder'
          texttype = texttype or 'primary'
          length = length or 5000
          exports['mdev-notify']:SendNotify(caption, mdev-text, length, texttype)
      else
          texttype = texttype or 'primary'
          length = length or 5000
          exports['mdev-notify']:SendNotify('M Development', text, length, texttype)
      end
  end
  </code></pre>
