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.

Get Callout info

Featured Replies

Is there a way to get a callout's info by feeding the LHandle?

If not can maybe a developer make such a function?

AlwayzPatty (Patrick)

Founder Overpunch Studios

 

The sun is always shining :)

  • Author

Nvm i kinda was looking for the name but found out that there was a call for it my bad. Was reading old api references before.

AlwayzPatty (Patrick)

Founder Overpunch Studios

 

The sun is always shining :)

  • Author
On 2/14/2020 at 8:37 PM, LMS said:

What info are you interested in?

Okay now I'm coming to the conclusion that I might need the location of the callout and the severity. Is this possible?

 

AlwayzPatty (Patrick)

Founder Overpunch Studios

 

The sun is always shining :)

  • Management Team
On 2/22/2020 at 11:46 AM, AlwayzPatty said:

Okay now I'm coming to the conclusion that I might need the location of the callout and the severity. Is this possible?

 

 

That's possible but not without reflection I'm afraid. If you share a bit more about what you are trying to do, perhaps we can come up with an alternative solution.

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

  • Author

Well im making a leveling system that gives you XP but I want it to be dependend on severety and the distance of the player so that the player gets more XP from certain calls.

Edited by AlwayzPatty
Clarifying

AlwayzPatty (Patrick)

Founder Overpunch Studios

 

The sun is always shining :)

  • Management Team

I see, distance could probably get done via reflection relatively easily, but I am not sure about severity. Where/how is that even represented by a callout?

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

  • Author

Severety i was basing around the code of the callout like it shows in the backup menu.

AlwayzPatty (Patrick)

Founder Overpunch Studios

 

The sun is always shining :)

  • Management Team

I don't think this information is available as it is not standardized for callouts and will differ. Perhaps the easiest way for now is to give generic experience per callout and then fine tune it per callout name. Of course this means you have to maintain a list of how much a specific callout yields, but I think that's the better solution as you just cannot get the information you are looking for from callouts.

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

  • Author
1 hour ago, LMS said:

I don't think this information is available as it is not standardized for callouts and will differ. Perhaps the easiest way for now is to give generic experience per callout and then fine tune it per callout name. Of course this means you have to maintain a list of how much a specific callout yields, but I think that's the better solution as you just cannot get the information you are looking for from callouts.

Okay thanks

AlwayzPatty (Patrick)

Founder Overpunch Studios

 

The sun is always shining :)

You could use other metrics as a proxy for severity. How long the callout runs for, did a shootout occur, was there a traffic stop or a pursuit, how much backup was called, etc. 

[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!

  • 5 months later...

I am interested in the callout location. how can i get this information if this is possible. I'm using events to get the LHandle but there is not much I can do with it.

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

On 8/7/2020 at 2:22 AM, ziipzaaapM16A4 said:

I am interested in the callout location. how can i get this information if this is possible. I'm using events to get the LHandle but there is not much I can do with it.

Nvm

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

thanks to @alexguirre for helping me with this and finding the solution:
for example we are trying to get the CalloutPosition.

 

Event_OnCalloutNotAccepted(LHandle lhandle) 
{
	Vector3 pos = new Vector3(0f, 0f, 0f);
	var prop = typeof(LHandle).GetRuntimeProperties().First(p => p.Name == "Object");
	var lhandleObj = prop.GetValue(lhanlde);
	Game.LogTrivial("[TestPlugin] DEBUG: The type of the object is: " + lhandleObj.GetType());
	if (lhandleObj is LSPD_First_Response.Mod.Callouts.Callout callout)
	{
	    pos = callout.CalloutPosition;			//change CalloutPosition to what you need.
	}
	Game.LogTrivial("[TestPlugin] DEBUG: pos is" + pos.ToString());
}

 

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.