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.

Functions.IsPedVisualLostLonger(Rage.Ped)

Featured Replies

  • Management Team

If you want to learn more about functions, you can use the XML documentation which you can find here linked below. In your specific case, the function "Gets a value indicating whether visual has been lost for a moment and the last known position is being searched."

 

 

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

  • Author

so i can put it in a "IF" condition to trigger a hasvisualchanged Event? cause i've already tried but the event is triggered when the red blip start to blink to disappear, and not when the X appear


 

Edited by Officerporci

  • Author

 private static void Events_OnPedArrested(Ped suspect, Ped arrestingOfficer)
        {
            if (Functions.IsPedArrested(suspect))
            {
                Functions.PlayScannerAudio("ATTENTION_ALL_UNITS SUSPECT_ARRESTED");
            }
        }

 

 

another problem, audio string not played, happens when  the player (alone and not) arrests the last  suspect  in a pursuit , while with other AI units it is played properly with all suspect in pursuit

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.