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.

Static Noise while Custom Scanner Track

Featured Replies

Hello all, 

 

I'm developing  a Callouts Pack.
And I decided to add some custom tracks such as Radio PTT, Outro, Notification etc. sounds. (.wav)

I tried to have the same folder names as other callout packs with custom sounds. The path is:

 

LSPDFR / audio / scanner / [Callouts Pack Name] / {Tracks in .wav}

Speaking of code, that's an example of my code:

Functions.PlayScannerAudio("NOTIF_SOUND");
Game.DisplayNotification("~g~Code 4~w~, return to patrol.");
Functions.PlayScannerAudio("PTT");
Functions.PlayScannerAudio("ATTENTION_ALL_UNITS WE_ARE_CODE_4");
Functions.PlayScannerAudio("END_3DPRT_PTT");


Note that, ATTENTION_ALL_UNITS  &  WE_ARE_CODE_4   samples work. My custom ones doesn't. 

 

 

Another example

Functions.PlayScannerAudio("PTT");
Game.DisplayNotification("Dispacth, I see the lost pet. Let the Owner know my location to come and take it.");
Functions.PlayScannerAudio("REPORT_RESPONSE_COPY");
Functions.PlayScannerAudio("END_3DPRT_PTT");


When NOTIF_SOUND  and  END_3DPRT_PTT  and  PTT  play, they just produce a 1 second -very loud-  static noise. 


Any idea why that happens?


 

Spoiler

 

Here is a whole code block, if it helps...
 


if (IsSpeechFinished = true && Game.LocalPlayer.Character.DistanceTo(PetsSpawnPoint) <= 4f) {

	OfficerFoundPet = true;
	Game.LogTrivialDebug("Officer found Pet.");

	Functions.PlayScannerAudio("PTT");
	Game.DisplayNotification("Dispacth, I see the lost pet. Let the Owner know my location to come and take it.");
	Functions.PlayScannerAudio("REPORT_RESPONSE_COPY");
	Functions.PlayScannerAudio("END_3DPRT_PTT");

	Functions.PlayScannerAudio("NOTIF_SOUND");
	Game.DisplayHelp("You can leave the scene now. Dispatch will take care of everything else.");
	OfficerFoundPetandLeftScene = true;
}

 

 

 




Thank you! 🙂
 

Edited by AlexanderK.
+++++

HELLO!!     I'm a Greek guy and YouTuber.   I really like Modding and playing LSPDFR!  I'm  very familiar with Programming (Coding) and PC Hardware / Software. I'm also a Cuber ( I Solve Rubicks Cubes and other kinds).   

My YouTube Channel:  https://www.youtube.com/c/ATGGGR/

 

 

 

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.