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 to get ped mugshots

Featured Replies

52 minutes ago, Eli180sx said:

Is there any way to get ped mugshots? like STP does when you ask for their ID? and compulite.

There is, however it's not easily implemented and you need to clear them after every usage to not overflow the memory and crash the game.

 

I'll post the code on how to grab the image once I get home

int PedHeadshot = NativeFunction.Natives.REGISTER_PEDHEADSHOT<int>(Game.LocalPlayer.Character);
while (!NativeFunction.Natives.IS_PEDHEADSHOT_READY<bool>(PedHeadshot))
{
   	//Wait until Headshot is ready
	GameFiber.Yield();
}
//Grab the  Headshotstring which will act as both the TextureDictionary and the TextureName
string Headshotstring = NativeFunction.Natives.GET_PEDHEADSHOT_TXD_STRING<string>(PedHeadshot);
//Display Headshot inside a notification
Game.DisplayNotification(Headshotstring, Headshotstring, "This will display the Headshot", "", "");
//Unload Headshot
NativeFunction.Natives.UNREGISTER_PEDHEADSHOT(PedHeadshot);

 

Keep in mind to always unregister the Ped_Headshot after using it to avoid crashes 

2 hours ago, RicyVasco said:
Display Headshot inside a notification

I have an idea but not sure it can be realized.
I would need to be able to display images type jpg or png, on a canvas-overlay of the GTA-screen.
Would your usage of a notification also be possible to use for external images, or does an even better method exist?
(I would like to display messages from a criminal in a story callout, but is uncertain if that is possible)

 

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

8 minutes ago, GTAbear said:

I have an idea but not sure it can be realized.
I would need to be able to display images type jpg or png, on a canvas-overlay of the GTA-screen.
Would your usage of a notification also be possible to use for external images, or does an even better method exist?
(I would like to display messages from a criminal in a story callout, but is uncertain if that is possible)

 

It's possible:

 

First you need to create a texture from file (default path being GTA5 directory

Texture MyPicture = Game.CreateTextureFromFile("YOURPATHHERE");

 

You can then use Graphics.DrawTexture Method to draw that picture on the specified position

  • Author
5 hours ago, RicyVasco said:

It's possible:

 

First you need to create a texture from file (default path being GTA5 directory

Texture MyPicture = Game.CreateTextureFromFile("YOURPATHHERE");

 

You can then use Graphics.DrawTexture Method to draw that picture on the specified position

Thank you so much RicyVasco you have been a big help

Edited by Eli180sx

  • Management Team
20 hours ago, GTAbear said:

I have an idea but not sure it can be realized.
I would need to be able to display images type jpg or png, on a canvas-overlay of the GTA-screen.
Would your usage of a notification also be possible to use for external images, or does an even better method exist?
(I would like to display messages from a criminal in a story callout, but is uncertain if that is possible)

 

 

In GTA, the world is your canvas. Depending on how creative you want to get, you could even play a YouTube video on a truck (not that you should, but you could).

 

image.jpeg

 

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
7 hours ago, LMS said:

 

In GTA, the world is your canvas. Depending on how creative you want to get, you could even play a YouTube video on a truck (not that you should, but you could).

 

image.jpeg

 

This is amazing haha, I guess all it takes is just knowledge.. I know it's impossible to do, but I wish there was properly detailed explanations of the NativeFubctions and stuff like that, cause not gonna lie it gets really confusing haha

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.