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 location as displayed in dispatch window?

Featured Replies

The location of a callout is shown when a callout is dispatched, and is heard over the radio when requesting backup. Is there any way to tie into that system in a plugin? I know you can use PlayScannerAudioUsingPosition to have the radio say the location, but I want to get the location text as shown in the notifications when initiating a callout. I found GetStreetName in the ragepluginhook API, but that's too specific. I want the more general locations, like "Paleto Forest", "Davis", "Los Santos Airport", etc. Any idea how to get that?

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

  • Author
On 8/7/2015 at 6:43 AM, alexguirre said:

Looks like I still need the WorldZone :sweat: to get the RealAreaName. I trying to use the native GET_NAME_OF_ZONE but I can't get it to work, For what I need it, it isn't anything crucial so I can remove it if the WorldZone ends up been private

 

EDIT: now I no longer need the WorldZone, I made that function myself. :smile:

@alexguirre it looks like you accomplished this somehow? Might you be able to share how you did that?

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

8 hours ago, PNWParksFan said:

The location of a callout is shown when a callout is dispatched, and is heard over the radio when requesting backup. Is there any way to tie into that system in a plugin? I know you can use PlayScannerAudioUsingPosition to have the radio say the location, but I want to get the location text as shown in the notifications when initiating a callout. I found GetStreetName in the ragepluginhook API, but that's too specific. I want the more general locations, like "Paleto Forest", "Davis", "Los Santos Airport", etc. Any idea how to get that?

It seems like they are keeping the WorldZone class since they added Functions.GetZoneAtPosition() that returns a WorldZone. You can use it this way
 

Spoiler

            Vector3 position = Game.LocalPlayer.Character.Position;
            LSPD_First_Response.Engine.Scripting.WorldZone worldZone = Functions.GetZoneAtPosition(position);

            //then depending on what you need you can use any of the properties
            worldZone.AudioName;
            worldZone.GameName;
            worldZone.RealAreaName;
            worldZone.County
            worldZone.CallPrefix;
            worldZone.CrimeModifier;

I didn't do it that way because I thought they were going to make it private.

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.