Config file
--[[
-Client Event List
"pma-voice:client:activemegaphoneuser"
"pma-voice:client:passivemegaphoneuser"
"tgiann-megaphone:drop"
-Export List
"megaphoneDist"
"megaphoneIsActive"
]]
--[[
QB-Item (qb-core/shared/items.lua)
['megaphone']= {['name'] = 'megaphone',['label'] = 'Megaphone', ['weight'] = 200, ['type'] = 'item', ['image'] = 'megaphone.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
]]
config = {}
config.framework = "qb" -- "esx" - "qb"
config.megaphoneDist = 50
config.vehMegaphoneKey = 29
config.ItemName = "megaphone"
config.lang = "en"
config.text = {
tr = {
["active"] = "Araç Megafonu Aktif",
["passive"] = "Araç Megafonu Pasif"
},
en = {
["active"] = "Vehicle Megaphone Active",
["passive"] = "Vehicle Megaphone Passive"
}
}
config.notif = function(msg, type) -- Type: success, error
-- Your notif event
if config.framework == "esx" then
myFramework.ShowNotification(msg)
elseif config.framework == "qb" then
if not type then type = "primary" end
myFramework.Functions.Notify(msg, type)
end
end
config.megaphoneVolume = 5.0 -- The volume, ranging from 0.0 to 1.0 (or above)
config.filterName = "tmphone"
config.filters = {
{ name = "freq_low", value = 10.0 },
{ name = "freq_hi", value = 10000.0 },
{ name = "rm_mod_freq", value = 300.0 },
{ name = "rm_mix", value = 0.2 },
{ name = "fudge", value = 0.0 },
{ name = "o_freq_lo", value = 200.0 },
{ name = "o_freq_hi", value = 5000.0 },
}
Last updated