Jump to content

Recommended Posts

  • 4 months later...
Posted (edited)

Use it for Java Client-Side =>

var GodMode = false;	// This is your Variable
var localPlayer = mp.players.local;

/// Use F5 to Enable/Disable your mode
mp.keys.bind(0x74, false, function() {

	GodMode = !GodMode;
	if (GodMode){
		localPlayer.setInvincible(true);
      	mp.gui.chat.push("God mod Enabled");
	} else {
		localPlayer.setInvincible(false);
      	mp.gui.chat.push("God mod disabled");
	}
});

0x74 is Virtual Key Code for F5, visit KeyCode list and you are able to change it

Virtual KeyCodes: https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes

Edited by LT.Steiner
  • Xabi locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...