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.

<Solved> audioflag is ignored

Featured Replies


I have implemented an alternative to the default "apprehend wanted suspect" callout, in native lspd.
The implementation is in a plugin, not a callout, it is a substitude-callout!
I need to emulate the default feature of not getting new callouts during the substitude-callout-action, and i have found information about blocking dispatch with:
NativeFunction.Natives.SetAudioFlag<bool>("PoliceScannerDisabled", true);
But that is ignored. Dispatch continue to make callouts and the mini-map toggles up/down accordingly. especially the map-toggling from detailed to oversight is very disturbing for the substitude-callout
Am i using SetAudioFlag wrong, or is there a better way to stop dispatch to make new callout untill it again is wanted?

 

----Solution:---------------------------------
Today i was reading up on a subject and incidently this came up:

Functions.SetPlayerAvailableForCalls(boolean);
That function works exactly like i need it to.
As long as the flag is false there are no callouts from dispatch

 

 

Edited by GTAbear
solution

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • Management Team

The callouts are dispatched by LSPDFR, not by the game. Hence calling any natives will not affect them. The native you are using is also only related to game audio. Can you describe a bit more what you are trying to achieve and why you are doing it outside of the LSPDFR callout manager?

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

  • Author
2 hours ago, LMS said:

The callouts are dispatched by LSPDFR, not by the game

Ohh- That explains it

 

2 hours ago, LMS said:

Can you describe a bit more what you are trying to achieve

I dislike the default Apprehend wanted suspect-callout. It is predictable, and the gameplay is low. So in my utility-plugin, i added a highly randomized 'replacement' that i then would start when dispatch made that Apprehend wanted suspect -Expressed shorter: I attempted to make something that is unsuitable for a plugin.
The way to do this would be to make a proper call-out, and not what i have done. In that process i also managed to misunderstand the functionality of SetAudioFlag
Thank you for that information! It looks like dispatching cant be disabled, in a utility plugin.

See my plugin here:
https://www.youtube.com/watch?v=peqSXuTfIyY

Let me know if you find it interesting.
Best Regards.

  • The title was changed to <Solved> audioflag is ignored

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.