pma-voice:使用FiveM mumble替代mumble-voip和tokovoip

  • c4_323843
    了解作者
  • 254.8KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-14 04:22
    上传日期
免责声明:主存储库中的代码被认为是“开发”,请使用来获得稳定版本。 语音 围绕使用FiveF内部内置服务器的语音系统。 支持 请报告您在GitHub 遇到的任何 注意:期望服务器使用最新推荐版本,您可以在找到和。 兼容性声明: 此脚本与其他语音系统(duh)不兼容,这意味着如果您拥有vMenus语音聊天功能,则必须将其。 请不要在您的任何其他脚本中覆盖NetworkSetTalkerProximity , MumbleSetAudioInputDistance , MumbleSetAudioOutputDistance或NetworkSetVoiceActive ,因为在某些情况下,它会破坏pma-voice。 学分 @Frazzle for mumble-voip(概念源自此) @pichotm for pVoice(网格概念的来源) FiveM配置 注意:仅使用“音频”选项之一
pma-voice-main.zip
  • pma-voice-main
  • voice-ui
  • .gitignore
    231B
  • README.md
    312B
  • .browserslistrc
    30B
  • public
  • mic_click_on.ogg
    28.2KB
  • mic_click_off.ogg
    47.9KB
  • index.html
    613B
  • package.json
    363B
  • src
  • main.js
    90B
  • App.vue
    2.5KB
  • babel.config.js
    73B
  • yarn.lock
    287.6KB
  • vue.config.js
    127B
  • README.md
    6.4KB
  • .github
  • ISSUE_TEMPLATE
  • bug_report.md
    552B
  • LICENSE
    1KB
  • server
  • server.lua
    2KB
  • module
  • radio.lua
    3.5KB
  • phone.lua
    3.6KB
  • TODO.md
    409B
  • client
  • module
  • radio.lua
    5.7KB
  • phone.lua
    2.4KB
  • main.lua
    10KB
  • shared.lua
    1.4KB
  • ui
  • css
  • app.css
    290B
  • mic_click_on.ogg
    28.2KB
  • js
  • chunk-vendors.js
    54.7KB
  • app.js
    3.3KB
  • mic_click_off.ogg
    47.9KB
  • index.html
    703B
  • fxmanifest.lua
    486B
内容介绍
### Disclaimer: Code in the main repo is considered to be 'dev', please use the [Latest Release](https://github.com/AvarianKnight/pma-voice/releases) for a stable version. # pma-voice A voice system designed around the use if FiveM's internal mumble server. ## Support Please report any issues you have in the GitHub [Issues](https://github.com/AvarianKnight/pma-voice/issues) ### NOTE: It is expected for servers to be on the latest recommended version, which you can find [here for Windows](https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/) and [here for Linux](https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/). # Compatibility Notice: This script is not compatible with other voice systems (duh), that means if you have vMenus voice chat you will **have** to [disable](https://docs.vespura.com/vmenu/faq/#q-how-do-i-disable-voice-chat) it. Please do not override `NetworkSetTalkerProximity`, `MumbleSetAudioInputDistance`, `MumbleSetAudioOutputDistance` or `NetworkSetVoiceActive` in any of your other scripts as there have been cases where it breaks pma-voice. # Credits - @Frazzle for mumble-voip (for which the concept came from) - @pichotm for pVoice (where the grid concept came from) # FiveM Config ### NOTE: Only use one of the Audio options (don't enable 3d Audio & Native Audio at the same time), its also recommended to always use voice_useSendingRangeOnly. You only need to add the convar **if** you're changing the value. All of the configs here are set using `setr [voice_configOption] [boolean]` | ConVar | Default | Description | Parameter(s) | |----------------------------|---------|---------------------------------------------------------------|--------------| | voice_useNativeAudio | false | Uses the games native audio, will add 3d sound, echo, reverb, and more. Required for submixs | boolean | | voice_use3dAudio | false | DEPRECATED: Use `voice_useNativeAudio` instead. Uses 3d audio, will base voices dependent where the player(s) are. | boolean | | voice_use2dAudio | false | Uses 2d audio, will result in same volume sound no matter where they're at until they leave proximity. | boolean | | voice_useSendingRangeOnly | false | Only allows you to hear people within your hear/send range, prevents people from connecting to your mumble server and trolling. | boolean | # Config All of the config is done via ConVars in order to streamline the process. The ints are used like a boolean to 0 would be false, 1 true. ### NOTE: voice_zoneRadius expects a multiple of 4, if you expect to have a lot of players in a smaller area its a good idea to reduce this to a smaller number. | ConVar | Default | Description | Parameter(s) | |-------------------------|---------|--------------------------------------------------------------------|--------------| | voice_zoneRadius | 16 | Sets the zone radius size. | int | | voice_enableUi | 1 | Enable the built in user interface | int | | voice_enableProximityCycle | 1 | Enables the usage of the F11 proximity key, if disabled players are stuck on the first proximity | int | | voice_enableRadios | 1 | Enables the radio sub-modules | int | | voice_enablePhones | 1 | Enables the phone sub-modules | int | | voice_enableRadioSubmix | 0 | Enable the radio submix which adds a radio style to the voice | int | | voice_defaultCycle | F11 | The default key to cycle the players proximity | string | | voice_defaultRadio | LALT | The default key to use the radio | string | | voice_externalAddress | none | The external address to use to connect to the mumble server | string | | voice_defaultVolume | 0.3 | The default volume to set the radio to (has to be between 0.0 and 1.0) *NOTE: Won't update during runtime, new joins will have the new value, players that already joined will not.* | string | | voice_externalPort | 0 | The external port to use | int | | voice_debugMode | 0 | 1 for basic logs, 4 for verbose logs | int | ### Aces pma-voice comes with a built in /mute command, in order to allow your staff to use it you will have to grand them the ace! Example: `add_ace group.superadmin command.mute allow;` This would only allow the superadmin group to mute players. ### Exports #### Client ##### Setters | Export | Description | Parameter(s) | |---------------------|---------------------------|--------------| | setVoiceProperty | Set config options | string, any | | setRadioChannel | Set radio channel | int | | setCallChannel | Set call channel | int | Supported from mumble-voip / toko-voip | Export | Description | Parameter(s) | |-----------------------|--------------------------|--------------| | SetMumbleProperty | Set config options | string, any | | SetTokoProperty | Set config options | string, any | | SetRadioChannel | Set radio channel | int | | SetCallChannel | Set call channel | int | | addPlayerToRadio | Set radio channel | int | | removePlayerFromRadio | Remove player from radio | | | addPlayerToCall | Set call channel | int | | removePlayerFromCall | Remove player from call | | #### Server ##### Setters | Export | Description | Parameter(s) | |----------------------|--------------------------------------|--------------| | setPlayerRadio | Sets the players radio channel | int, int | | setPlayerCall | Sets the players call channel | int, int | | updateRoutingBucket | Updates the players routing bucket, if provided a secondary option it will set & update the players routing bucket. | int, int (opt) | ##### Getters Not currently implemented, more getters will be added in the future.
评论
    相关推荐