Server Admins: Add Callouts - PBogi/FivePDAudio GitHub Wiki

You can add new callouts and their respective audio file in the callouts.json. This currently only works with audio provided by FivePD Audio and not (yet) with custom files added.

Open callouts.json with a text editor of your choice and continue the list in the same format (within the { } ). Don't forget the comma at the end of each line, except the last line.

"Callout name":"Audio path and filename",

The callout name needs to match exactly what is displayed to you, when the callout is offered, but is not case sensitive! You can use the debug menu added in FivePD 1.0.6 to trigger a callout, but do not use the name displayed there! Use the "Call" name you see in the "Dispatch 911 Call" message.

The audio file is not case sensitive and is then searched using "starts with", which means you don't have to include the whole filename and also if there are multiple results, a random file will be chosen.

{
   "Example Robbery":"CRIMES/CRIME_ROBBERY_01.ogg",
   "Another Robbery":"CRIMES/CRIME_ROBBERY_0",
   "Yet another Robbery":"CRIMES/CRIME_ROBBERY"
}

In this example, we have 3 different robbery callouts. In the AUDIO/CRIMES/ folder, the following "CRIME_ROBBERY..." files are available:

  • CRIME_ROBBERY_01.ogg
  • CRIME_ROBBERY_02.ogg
  • CRIME_ROBBERY_WITH_A_FIREARM_01.ogg

These entries in the callouts.json therefore give the following results:

  • "Example Robbery" will only ever play "CRIME_ROBBERY_01.ogg"
  • "Another Robbery" will play either "CRIME_ROBBERY_01.ogg" or "CRIME_ROBBERY_02.ogg"
  • "Yet another Robbery" will play any of those 3 available files randomly