Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssnotifications (_notifications)

Category:script
Author(s):#AnDreS^^
Downloads:1312
Rate:You need to be logged in to vote
Rating:5 (1 Vote)
Description:
You have to start the resource before, when writing your code you should call the event called "add: Notifications" HAVE FADE ANIMATION!!


Video: https://www.youtube.com/watch?v=xcxG4GQr1_U
Github: https://github.com/AndresTVz/MTA_Resources.git
(_notifications)

types of notifications :
"default","success","warn","info","error"

-- server to client
triggerClientEvent(source, "add:notification", source, "Here the text!", "the types notifications",true)

-- client to client
triggerEvent("add:notification",localPlayer,"Here the text!","the types notifications",true)

==script example==
addCommandHandler("notify",
function()
triggerEvent("add:notification",localPlayer,"Welcome AndresTVz(default)","default",true)
triggerEvent("add:notification",localPlayer,"Download me! (success)","success",true)
triggerEvent("add:notification",localPlayer,"You are the best!","warn",true)
triggerEvent("add:notification",localPlayer,"Info notification","info",true)
triggerEvent("add:notification",localPlayer,"Error putito","error",true)
end)

Download latest version | Report

Version history

Version Publish Date Changes
0.1.0 2021-07-12 04:23:00 First public release Download