Jump to content

Question regarding frisking and the 0.4 API


CowNation

Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...