ScriptsM Megaphone

ScriptsM Megaphone system

This script will allow you to speak in megaphone with qb, esx frameworks and standalone. Working in vehicle and handheld, have nice configuration file and 2 custom props for police and civillian megaphones.

Installation

Download a resource (opens in a new tab) from keymaster or buy it by buttons at the top

Install all resource dependencies

Resource start order

It's important for your resources to start in a logical order to prevent errors from missing dependencies.

start yourframework
start ScriptsM-Megaphones

Config

There you can find an config of resource with description for all params

 
 
Config.Framework = 'esx' -- esx/qb/standalone
 
Config.UseCommands = true -- Use commands to equip megaphones? /megaphone, /megaphoneciv
 
Config.MegaphoneRadius = 50 -- Megaphone voice distance
 
Config.CarMegaphoneHotkey = 47 -- Megaphone key in car 
 
Config.Vehicles = { -- Vehicles with megaphone
    {hash = `police`},
    {hash = `police2`}
}
 
Config.PersistNotify = function() -- Megaphone hotkey help export
exports['t-notify']:Persist({
id = 'megaphonepersist',
    step = 'start',
    options = {
        style = 'message',
        title = 'Megaphone',
        message = 'Talk: [E], Unequip: [X]',
        sound = true
    }
    })
end
 
Config.PersistNotifyEnd = function() -- Megaphone end hotkey help export
exports['t-notify']:Persist({
    id = 'megaphonepersist',
    step = 'end'
})
end