Jump to content

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 16

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Nov4tO266

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

Nice!

crying_bae

   1 of 2 members found this review helpful 1 / 2 members

Another great job!

ynhhoJ

   1 of 2 members found this review helpful 1 / 2 members

Best

ragempdev

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

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

 

 

wow thats without cef !!! 5/5

  • Like 1
haze1337

· Edited by haze1337

  

Very nice!

HankSteiner

· Edited by HankSteiner

  

yep

demellion

  

This made my life slightly easier.

5/5

hubba

  

+REP

Adam

  

Good stuff, keep up!

×
×
  • Create New...