PA | Megaphone

This resource adds a working megaphone system for emergency vehicles, helicopters, and handheld use.


Installation

circle-exclamation
1

Enable native audio and submixes

Add these lines into your server.cfg

setr voice_useNativeAudio true
setr voice_enableSubmix 1
circle-info

Those lines must be added above the line ensure pma-voice or ensure [standalone]

2

Drop this resource folder into your resources folder

3

Add the following line to your server.cfg

ensure cfx-retro-megaphone
4

Optional

You can also add

setr voice_disableAutomaticListenerOnCamera 1

to the server.cfg

This changes how audio is heard depending on the camera position.


Configuration

All settings are inside config.lua.

Keybinds

Config.EnableKeybinds = true -- Enable/Disable keybinds
Config.VehicleMegaphoneBind = 'K' -- Key for vehicle megaphone
Config.HandMegaphoneBind = 'H' -- Key for handheld megaphone
  • EnableKeybinds: Master switch for using keybinds.

  • VehicleMegaphoneBind: Key used when inside a vehicle.

  • HandMegaphoneBind: Key used when holding a handheld megaphone (not in vehicle).


Voice Effect

  • 1: Default GTA effect

  • 2: Alternative effect

  • 3: Custom effect using Config.SubmixSettings


Vehicle support

  • OnlyFromList:

    • true → Only vehicles listed in Config.PoliceVehicles will have megaphone access.

    • false → Works in all emergency vehicles.

  • PoliceVehicles: List of vehicle models allowed to use megaphone.

  • Helis: List of helicopters allowed to use megaphone.


Only for front seats

If set to true only players in the front seats will be able to use PA (Public Address) system.


Effect distances

  • MegaphoneProximity: Range when using vehicle megaphone.

  • HeliMegaphoneProximity: Range when using helicopter megaphone.

  • HandProximity: Range when using handheld megaphone.

circle-info

If your voice distance does not change after adjusting the values above try istalling v7.0.0 of pma-voicearrow-up-right (pay attention to the changes in the changelog)


Volume Control

  • CustomVolume: Enables bypassing 3D distance and using fixed volume.

  • CustomVolumeFloat: Adjusts volume multiplier (play around with values).


Framework & Item checker support

  • Framework: Choose your framework (standalone requires manual edit in inventory/client.lua).

  • MegaphoneItemName: Item name required for handheld megaphone.


Submix & Settings

Custom audio effect configuration using GTA’s SetAudioSubmixEffectParamFloat native.

Last updated