Jump to content
RAGE Multiplayer Community

Better Notifications 2.1.0

   (8 reviews)

1 Screenshot

About This File

Now with 200% more color.

Clientside Functions:

mp.game.ui.notifications.show(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200])
mp.game.ui.notifications.showWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200])

Serverside Functions:

player.notify(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200])
player.notifyWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200])

As Events:

BN_Show(message, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200])
BN_ShowWithPicture(title, sender, message, notifPic, icon = 0, flashing = false, textColor = -1, bgColor = -1, flashColor = [77, 77, 77, 200])

Example:

// Clientside
mp.game.ui.notifications.show("Normal message with custom text and background color.", false, 15, 20);
mp.game.ui.notifications.showWithPicture("New Message", "Facebook", "You got some more of that data?", "CHAR_FACEBOOK", 1, false, 0, 139);

// Serverside
player.notify("This message is red which means you're doing something wrong.", false, 6);
player.notifyWithPicture("Title", "Ammu-Nation", "Ammunation has all the equipment you need to protect your family from the evils of a liberal society! Fixed, mounted, and shoulder-held submachine guns. Mortars! Surface-to-air and all manner of heat-seeking missiles!", "CHAR_AMMUNATION");

Icons:

You can specify an icon ID for picture notifications, here's a list of them:

  • 0, 4, 5, 6 = No Icon
  • 1 = Speech Bubble
  • 2 = Message
  • 3 = Friend Request
  • 7 = Arrow
  • 8 = RP
  • 9 = Money

Notes:

  • textColor and bgColor parameters want a HUD color ID which you can find here. (it is a bit outdated now though)
  • You can find notification pictures here.
  • If you can't see picture notifications, you must enable Phone Alerts from Settings > Notifications > Phone Alerts.
  • This script changes player.notify on serverside.

What's New in Version 2.1.0   See changelog

Released

* This version needs RAGE Multiplayer 1.1.0 and above to work.

- Switched to a much better way of handling long messages.

- Removed useless drawNotification call from picture notifications.

  • Like 14

User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest

crying_bae

   0 of 1 member found this review helpful 0 / 1 member

Another great job!

Link to comment
ragempdev

  

makes rage standards as offended as never before..... 1/5

 

 

wow thats without cef !!! 5/5

Link to comment
×
×
  • Create New...