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.

Notification images

Featured Replies

  • Author

I know that it's DisplayNotification("DictionaryName", "TextureName", "Title", "Subtitle", "Text")

 

But what exactly does the dictionary correspond to? Would that be the path location that the texture resides in? For example "Plugins/LSPDFR/MyPlugin"? Or do I need to create a new dictionary? If so a quick example would be amazing! :thumbsup:

Edited by Budzilla

  • Author

For anyone wondering the texture dictionaries are located in "x64b.rpf>data>cdimages>scaleform_generic.rpf"

Edited by Budzilla

@Budzilla I'll teach you..for this tutorial we will just use a simple texture from the game that you can easily find in openiv.

steps:

1. go to open iv and search for something like 3dtextures (in update/update.rpf/x64/textures/scripts_txds)

2. you will see alot of files, we will just take the first one "3dtextures.ytd", in that file we have three images ("mpgroundlogo_bikers", "mpgroundlogo_cops", "mpgroundlogo_vagos")

3. we will use the 2nd one ("mpgroundlogo_cops" (cop badge))

4. go to visual studio or whatever you use and type Game.DisplayNotification("", "", "", "", "")

5. we will use the notification that needs five parameters,

5.1. the first parameter is textureDictionaryName = 3dtextures

5.2. the second parameter is textureName = mpgroundlogo_cops

5.3. the last three params title, subtitle, text are self explainable.

 

If you want an image of a peds head in the notification(a ped you are using ingame), use this:

private int handle

 

handle = NativeFunction.Natives.RegisterPedheadshot<int>(Ped);
            if (NativeFunction.Natives.IsPedheadshotReady<bool>(handle))
            {
                string str = NativeFunction.Natives.GetPedheadshotTxdString<string>(handle);
                Game.DisplayNotification(str, str, "title", "subtitle", "text");
            }

Edited by NoNameSet

  • 2 years later...
On 11/1/2017 at 12:40 PM, NoNameSet said:

@Budzilla I'll teach you..for this tutorial we will just use a simple texture from the game that you can easily find in openiv.

steps:

1. go to open iv and search for something like 3dtextures (in update/update.rpf/x64/textures/scripts_txds)

2. you will see alot of files, we will just take the first one "3dtextures.ytd", in that file we have three images ("mpgroundlogo_bikers", "mpgroundlogo_cops", "mpgroundlogo_vagos")

3. we will use the 2nd one ("mpgroundlogo_cops" (cop badge))

4. go to visual studio or whatever you use and type Game.DisplayNotification("", "", "", "", "")

5. we will use the notification that needs five parameters,

5.1. the first parameter is textureDictionaryName = 3dtextures

5.2. the second parameter is textureName = mpgroundlogo_cops

5.3. the last three params title, subtitle, text are self explainable.

 

If you want an image of a peds head in the notification(a ped you are using ingame), use this:

private int handle

 

handle = NativeFunction.Natives.RegisterPedheadshot<int>(Ped);
            if (NativeFunction.Natives.IsPedheadshotReady<bool>(handle))
            {
                string str = NativeFunction.Natives.GetPedheadshotTxdString<string>(handle);
                Game.DisplayNotification(str, str, "title", "subtitle", "text");
            }

 

Thanks dude. i searched really long for the path of UI Elements (Plugin Development Reasons)

Edited by ziipzaaapM16A4

Take a look at my Plugins:

AmbientAICallouts: Ai get calls too. Callouts can turn into a backup request for the player [YouTube Link]

Search Vehicle Plugin: Simple and more Immersive Vehicle Search Plugin [YouTube Link]

What Was You Name Again?: Get the name of a Suspect even when arrested and placed in your Vehicle [YouTube Link]
Corpse Inspection:  Investigate the corpse. Interact and search for details in a more Cinematic way  [YouTube Link]
[WIP] EnvoirementalCallouts: A couple of Callouts and WorldEvents that are likely to happen to you while you're on duty [Youtube Link]

[OnHold] EMS Support: Be the First Responder of Medical Emergency's and do CPR on Patients [YouTube Link]

 

spacer.png

Checkout my Patreon for Early Access to my mods                                       checkout my Discord Server

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.