Using Notifications

This system is extremely simple to use and we can configure different notifications in our other assets, for this we will use this document.


Create a notification in client

On the client side we will execute an export, in this we will give the desired values, such as a message, the time that can vary by more, for example 1500 or a type that are declared below.

exports['qs-notify']:Alert('message', time, 'type')

Create a notification on the server

In the case of the server, we will execute a trigger instead of an export, in which we will give the desired values, such as a message, the time that can vary by more, for example 1500 or a type that are declared below.

TriggerClientEvent('qs-notify:Alert', source, 'message', time, 'type')

Types of notifications

To execute notifications, we have different types of notifications, which we will name their values here, you can use the following document to create new ones.

  • info

  • error

  • success

  • warning

  • phone

  • ambulance

  • police

Last updated