[RELEASE] [STANDALONE] Notification Script

[UPDATE]
I just released a free V2 with a new design that is also compatible with this version.

Check it out Here!

[OLD]
Hello

again today with a new script which I created (for german Fastlife Roleplay). It was leaked again and then I can publish it right away.

script should be easy to understand but of course you have to adjust it.

Screenshot:

BUhH0hGE0F

Download:
GitHub

have fun with it!

16 Likes

nice work. can you tell me how i add the design to my normal chat. or does it work at all?

ESX = nil

TriggerEvent(‘esx:getSharedObject’, function(obj) ESX = obj end)

RegisterCommand(“announce”, function(source, args)
local argString = table.concat(args, " ")
if argString ~= nil then
TriggerClientEvent(‘notificationsn’, -1, “#eb4034”, “ANKÜNDIGUNG”, argString)
end
end, true)

RegisterCommand(“id”, function(source, args)
TriggerClientEvent(‘notifications’, source, “#eb4034”, “ANKÜNDIGUNG”, "Deine ID ist: " 
 source)
end, false)

You’ve got a typo in TriggerClientEvent(‘notificationsn’, -1


You should correct it, otherwise it’s an empty Event.

@btwlouis as this is a standalone resource you should remove the ESX aspects from it

server.lua
1 ESX = nil
2 
3 TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)

thx, fixed

thx, fixed in the new version

Kannst du vielleicht noch gegen Geld etwas dazuscripten? Das die Nachricht sich automatisch nach unten weiterverschiebt, wenn eine andere Nachricht kommt?

Great release would be nice if the notifications stacked under eachother if a new notification comes
so they would be like this

notify
nofity
notify

1 Like

Hey,
ich hĂ€tte dort eine Frage, und zwar könntest du eventuell eine Implementierung machen, damit man mit einer Funktion eine Nachricht senden kann aus jedem Script quasi wie ESX.showNotification(“TEST”).
Du machst echt eine Top Arbeit

Viele GrĂŒĂŸe
DonMarco

es_extended/client/functions.lua dann nach ESX.ShowNotification = function(msg) suchen

Dann Replacen durch

ESX.ShowNotification = function(msg)

TriggerEvent("notifications", "#000000", "NOTIFICATION", msg)

end

1 Like

Dankeschön fĂŒr deine Hilfe :pray:

Wie connected man diese Notification auch in andere Scripts, dass bei anderen Sachen auch die Notify kommt?

Liebe GrĂŒĂŸe

Einfach mal beim Github Link lesen ^^

Meinst du das hier?

TriggerEvent(‘notifications’, “#f1f1f1”, “Awesome title”, “Awesome message”)

Ja. Das kannst du Clientseitig triggern.

Kann man es irgendwie einstellen das die Nachricht sich automatisch nach unten weiterverschiebt, wenn eine andere Nachricht kommt?

Habs schon, aber danke dir.

Kann mir jemand vielleicht sagen wie ich einen ooc und Werbung chat reinmache

Kann man es irgendwie einstellen das die Nachricht sich automatisch nach unten weiterverschiebt, wenn eine andere Nachricht kommt?

DE : Kann mir jemand helfen
 Ich möchte nur dass obere anzeigen lassen
EN : Can someone help me 
 I only want the upper