Add F7 as representive from SA:MP /unshowalles
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//https://docs.microsoft.com/de-de/windows/desktop/inputdev/virtual-key-codes
|
||||
|
||||
var chat = false;
|
||||
var showGui = true;
|
||||
|
||||
//ENTER
|
||||
mp.keys.bind(0x0D, false, function () {
|
||||
@@ -15,6 +16,17 @@ mp.keys.bind(0x0D, false, function () {
|
||||
}
|
||||
});
|
||||
|
||||
//F7
|
||||
mp.keys.bind(0x76, false, function () {
|
||||
if (showGui === true) {
|
||||
showGui = false;
|
||||
mp.events.call("toggleUi", false);
|
||||
} else {
|
||||
showGui = true;
|
||||
mp.events.call("toggleUi", true);
|
||||
}
|
||||
});
|
||||
|
||||
//I
|
||||
mp.keys.bind(0x49, false, function () {
|
||||
if (!chat) {
|
||||
|
||||
Reference in New Issue
Block a user