基于 NUI 的现代音乐盒脚本 FiveM QBCore ESX 插件
Config = {}
Config.MaxDistanceAtFullVolume = 50.0 -- Maximum distance to which music can me heared at full volume
Config.isSoundPublic = true -- true = everyone can hear from car, false means only you can hear the music
Config.ItemLinked = 'wire' -- make if false if you want to use Config.CommandVehicle, otherwise enter the inventory item name whome you want to link it. like 'radio'
Config.CommandVehicle = "music" -- Only will work if Config.ItemLinked == false
Config.MusicZones = {
{
name = "Bennys Mechanic Shop",
coords = vector3(-212.52, -1341.59, 34.89),
job = "mechanic", --Only person with This job can have music controls
volume = 0.1, -- Default volume (0.0 to 1.0 as per xsound documentation)
range = 20.0, -- Maximum distance to which music can me heared at full volume
defaultLink = "https://www.youtube.com/watch?v=pTIN6-pLeds", -- Default song link (Leave Empty to playnothing)
isplaying = false, -- music automatically start playing defaultLink with server start/re-start
loop = false, -- loop a song
defaultTime = 0 -- start song from 0ms
},
{
name = "Vanilla Unicorn",
coords = vector3(120.59, -1281.14, 29.48),
job = "unicorn",
volume = 0.1,
range = 10.0,
defaultLink = "",
isplaying = false,
loop = false,
defaultTime = 0
},
}
© 版权声明
THE END
暂无评论内容