Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

HOW CAN I CHANGE CERTAIN COLOURS OF TEXT

Featured Replies

So I'm trying to do a Hit And Run Suspect callout, it's working fine. But I want to change the colour of "Dispatch:" in my Game.DisplayNotification("Dispatch: Suspect was in a severe hit and run a couple of hours ago, perform a traffic stop, and approach with caution."); to blue, I just don't know how to do it.

Add a ~b~ before "Dispatch:" and ~s~ after that. How it should look like: Game.DisplayNotification("~b~Dispatch:~s~ Suspect was in a severe hit and run a couple of hours ago, perform a traffic stop, and approach with caution.");

 

Color codes:

~r~ = Red

~b~ = Blue

~g~ = Green

~y~ = Yellow

~p~ = Purple

~q~ = Pink

~o~ = Orange

~c~ = Grey

~m~ = Darker Grey

~u~ = Black

~n~ = New Line

~s~ = Default White

~w~ = White

~h~ = Bold Text

Edited by creator2013

  • Author
30 minutes ago, creator2013 said:

Add a ~b~ before "Dispatch:" and ~s~ after that. How it should look like: Game.DisplayNotification("~b~Dispatch:~s~ Suspect was in a severe hit and run a couple of hours ago, perform a traffic stop, and approach with caution.");

 

Color codes:

~r~ = Red

~b~ = Blue

~g~ = Green

~y~ = Yellow

~p~ = Purple

~q~ = Pink

~o~ = Orange

~c~ = Grey

~m~ = Darker Grey

~u~ = Black

~n~ = New Line

~s~ = Default White

~w~ = White

~h~ = Bold Text

Thanks a lot Sir, do I put a ~s~ for every colour? or is it different for some?

  • 2 years later...

Is it a callout?

 

If not, put this:

while (true){
 GameFiber.Yield()
 if (Game.LocalPlayer.Character.DistanceTo(Suspect.Position) < 30f){
   Game.DisplayNotification("put text in here");
   break;
  }
}

 

if it is, put this in Process():

 

if (!NotificationShowed && Game.LocalPlayer.Character.DistanceTo(Suspect.Position) < 30f)
{
  Game.DisplayNotification("text in here");
  NotificationShowed = true
}

 

And this at the start where you declare variables:

 

private bool NotificationDisplayed = false;

 

Edited by LSPD Snow
Forgot semicolon

 

A LSPDFR lover 😉

Join the conversation

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

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.