Exports

The exports for your scripts

Notifys

Client side

Parameters:

type: Type of notification you want to use, in the config_script you have all the names (Mandatory). text : The text you want the notification to have. (Mandatory) title : The title of the notification, if you don't set it, the default title will be used (in config_script you can change it). img: URL of the image or inside the script files you can also put it. sound: Force a different sound and not the one the player has saved. time: Force a defined time of the notification ignoring the one the player has saved.

Export
exports['stNotify']:Notify(type, text, title, img, sound, time)

Examples:

Common Usage
exports['stNotify']:Notify('info', 'Example Text')
With Image
exports['stNotify']:Notify('x', 'My new car', 'X', 'https://in.mt/6Ji')

Server Side

Use the same parameters as the client side export only that you must first set the user source.

exports['stNotify']:Notify(source, type, text, title, img, sound, time)

Last updated

Was this helpful?