Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 6th, 2020 240 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global.voiceChannelStatus = true;
  2. mp.keys.bind(0x4D, true, function () {
  3.   if (interfaceOpened == false && loggedIn == true) {
  4.     mp.events.callRemote("toggleVoice");
  5.   }
  6. });
  7.  
  8. mp.keys.bind(0x4E, true, function () {
  9.   if (interfaceOpened == false && loggedIn == true) {
  10.     mp.events.callRemote("startTalking");
  11.     player.voiceVolume = 1.0;
  12.     mp.voiceChat.muted = false;
  13.   }
  14. });
  15.  
  16. mp.keys.bind(0x4E, false, function () {
  17.   if (interfaceOpened == false && loggedIn == true) {
  18.     mp.events.callRemote("stopTalking");
  19.     mp.voiceChat.muted = true;
  20.   }
  21. });
  22.  
  23. mp.events.add('setVoiceToggle', (toggle) => {
  24.   voiceChannelStatus = toggle;
  25.   mp.game.graphics.notify(`~y~Voice Chat is now: ~w~${toggle == true ? 'Enabled' : 'Disabled'}`);
  26. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top