Was watching Koils twitch and seen his new alerts, (New to me, I don’t watch twitch nor do I watch RP of any content mainly because I just don’t )
So with that being said, I liked the style and the way how the alert shows, the looks and such, so I decided to spend about 20-25mins making a quick Alert Script that looks similar to Koils, you can see the video here.
ESX Version of Outlaw Alerts: Link (All credits to @Danny3tb)
Credits: @Alzar - Allowing me to use his queue system from mythic_notify which allows this script to be what it is.
I don’t claim nor do I intend to claim this is THE best alerts script out there nor do I intend to claim this code is amazing and it’s all pefect, blah blah blah.
This is a pure development release which may or may not be updated in the future.
Just follow the same format like how it shows with the command from the server file but I wouldn’t recommend using this. It plays the notification but will only have one and will over write the old notification unlike mythic notify or pNotify.
That’s because it’s a dev release
Meaning it’s still in development, the purpose of this release is to give back to the community, maybe they’ll fork the release and do their own updates, the next update will be a queue system.
Hey man that’s all good, that was the intention of the release, unfortunately I’ve been busy lately so I couldn’t provide any uppdates, well work on the script actually but yeah go for it, thanks for contributing
Just pushed a new update to the Alerts script, this allows multiple alerts to be on screen at the same time with your own custom designed length, I can’t stress this enough. The Commands in the server side are EXAMPLES, use the examples to understand how it works IE the length, you don’t have to define this in the server.
I’ve included an example for those struggling, I understand it may be a bad example but I’m sick at the moment so I’ve not put full effort into the example but you’ll get the idea.
All credits to @Alzar for allowing me to use his queue system of Mythic Notify, without him I’d still be struggling so all thanks to him.
Yeahp everything can be adjusted to how you want it using the .css in the /html/ folder, I think I might have a bit of the old css code in there but it shouldn’t be hard to find, if I do I’ll push an update to git removing the deprecated stylings.
V2 features database tables, it’s actually incredibly cool but as is youl have to modify it to be esx compatable for the job check. There v2 also features different alert styles. Very easy to work with although it could just be me because I’m using an older version of es_mysql and such but on server start you may have issues with the fetch all.
Stroudy has been incredibly helpful with this release and I’m extremely excited to see more public releases in the future. Great work man!
Great release, I started modifying it to push different data depending on what notification is triggered. For example, stolen vehicles will also display the vehicle type stolen etc.
However I am having the issue where the extra data fields are pulling in the alerts they’re not needed for.
Any advice on best way to have it pull different styles with the correct data for the different type of alerts?
See below an example. The gunshot alert is wanting the vehicle data which obviously isn’t needed.
I’d imagine its something to do with the NUI calling to the javascript. While my lua knowledge is pretty decent, I’m lost when I get to the javascript.