General Configuration

This guide will help you configure the script to suit your needs, covering all available options in the config.lua file. Each setting is explained step by step.


1. General Configuration

Language

Set the language used by the script.

Config.Language = 'en' -- Available options: 'en' (English), 'fr' (French)

Use Outdated Version

Enable this option to suppress alert messages when using an older version of the script.

Config.UseOutdatedVersion = false -- Set to true if using an outdated script version.

2. Framework Compatibility

If you're using a framework like ESX, QB, or OX Inventory, enable this setting.

Config.UseFramework = false

3. Voice System Compatibility

PMA-Voice Compatibility

Enable this option if your server uses PMA-Voice.


SaltyChat Compatibility

Enable this option if your server uses SaltyChat.

If you're not sure which version of SaltyChat you are using:

  • Try enabling the new version (UseNewVersion = true).

  • Launch the game and test the megaphone.

  • If you see an error in the F8 client console, switch to UseNewVersion = false and set UseOldVersion = true.


YACA Compatibility

Enable this option if your server uses YACA.


Mumble-VOIP Compatibility

Enable this option if your server uses Mumble-VOIP.


4. Megaphone Behavior Settings

Auto Push-to-Talk

Automatically activates push-to-talk while using the megaphone.

Talk Distance

Defines the speaking range of the megaphone.

For PMA-Voice users, modify this in @pma-voice/client/megaphone.lua.

Manage Volume

Allows players to adjust megaphone volume.

Voice Effects

Applies frequency filters to simulate a real megaphone sound.

Disable Joystick Controller


5. Vehicle Configuration

Enable Megaphone in Vehicles

Allows megaphone usage while inside a vehicle.

Vehicle Notification Hint

Displays a notification when inside a vehicle with a megaphone.

Restrict to Emergency Vehicles

Limits megaphone use to emergency vehicles only.

Additional Allowed Vehicles

Specify additional vehicles that can use the megaphone.

Allowed Seat Positions

Define which vehicle seats can use the megaphone.


6. Megaphone Weapon Settings

Define Megaphone as a Weapon

Sets the megaphone as a weapon in the game.

Megaphone Display Name

Name displayed in the weapon wheel when equipping the megaphone.


7. Key Bindings

Keys for Interaction

Set the keys used for speaking into the megaphone.

Refer to the FiveM Control Reference for a list of control codes.


8. Language Library

Edit the text displayed for different actions in multiple languages.

Last updated