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.

Question regarding frisking and the 0.4 API

Featured Replies

I have been searching for some function to frisk/search a ped, or a class that can store information regarding what is in a ped's inventory. Mainly I am searching for a function that will return what is in a ped's pockets, it would return the same info as when you frisk a ped. The only one that I think may relate to this is the WantedInformation class. The only place this appears in is it is returned in a function in the persona class.

public WantedInformation WantedInformation { get; }

Here is the WantedInformation class (I assume this class only relates to whenever you lose someone in a pursuit but I don't know)

public class WantedInformation
    {
        public WantedInformation();

        public bool CanBeSearchedInManhunt { get; set; }
        public bool CarriesEvidence { get; set; } // Maybe this pertains if the ped is carrying any contraband? I'm looking for something that returns all of their items.
        public bool EscapedInVehicle { get; set; }
        public VehicleInformation GetawayCar { get; set; }
        public bool IsWantedInManhunt { get; set; }
        public DateTime LastSeenUtc { get; set; }
        public Vector3 LastSeenPosition { get; set; }

        public void Update(Persona persona);
    }

 

Edited by CowNation

C++, C#, and Python dev with a dream.. and depression

Related question: Is there any way to set a ped's items, so that you will find something specific when you frisk them?

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

4 hours ago, PNWParksFan said:

Related question: Is there any way to set a ped's items, so that you will find something specific when you frisk them?

I imagine the items being the same when frisking the same ped again. Therefor it probably uses metadata or is stored in a private dict.

So I guess no?

  • Author
Just now, NoNameSet said:

I imagine the items being the same when frisking the same ped again. Therefor it probably uses metadata or is stored in a private dict.

So I guess no?

Why wouldn't they include that in the API though?!

C++, C#, and Python dev with a dream.. and depression

Right, I'm not surprised that it isn't in the initial update, just asking that API access to ped items for frisk purposes be exposed in the future API update 🙂

[REL] Coastal Callouts: An action-packed mod with new vehicles, maps, capabilities, and callouts in and around the waters of Los Santos

[REL] Police Tape: Make your scenes more realistic while stopping peds and traffic

[REL] Better EMS: Realistic and dynamic EMS response

Join the Parks Benefactor Program to support my work and get early beta access!

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...

Similar Content

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.