This is a simple optimized FiveM megaphone script, this adds a handheld megaphone, a vehicle megaphone and static megaphones to objects which are specified in the config file.
For support just join our Discord.
Download
Download latest release
Drag folder into server resources
Edit the config as you please.
Installation - FrameworkDownload latest release
Drag folder into server resources
In shared/config.lua specify either QB or QBox as instructed
Add item-assets/megaphone.png to your inventorys item icons.
Add items to framework.
QB -
Add to your qb-core/shared/items.lua
QBox / ox_inventory -
Add to your ox_inventory/data/items.lua
To use qb-target replace client/microphones.lua with the below code
local models = Config.models Citizen.CreateThread(function() exports['qb-target']:AddTargetModel(models, { options = { { icon = 'fa-solid fa-microphone', label = 'Use Microphone', action = function(entity) createMicPoly(GetEntityModel(entity)) end, } }, distance = 1, }) end)