[Free] [Standalone/QB/ESX] fd

文章正文
发布时间:2025-11-25 21:26

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

fd-megaphone

Dependencies Installation - Standalone

Download latest release

Drag folder into server resources

Edit the config as you please.

Installation - Framework

Download 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

megaphone = { name = 'megaphone', label = 'Megaphone', weight = 500, type = 'item', image = 'megaphone.png', unique = true, useable = true, shouldClose = true, description = 'A usable megaphone' },

QBox / ox_inventory -
Add to your ox_inventory/data/items.lua

["megaphone"] = { label = "Megaphone", weight = 500, stack = false, close = true, description = "A usable megaphone" },

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)

首页
评论
分享
Top