mp.keys.bind(Keys.VK_1, false, function () { // 1 key
if (!loggedin || chatActive || new Date().getTime() - global.lastCheck < 1000 || global.menuOpened || mp.gui.cursor.visible) return;
mp.events.callRemote('changeweap', 1);
global.lastCheck = new Date().getTime();
});
mp.keys.bind(Keys.VK_2, false, function () { // 2 key
if (!loggedin || chatActive || new Date().getTime() - global.lastCheck < 1000 || global.menuOpened || mp.gui.cursor.visible) return;
mp.events.callRemote('changeweap', 2);
global.lastCheck = new Date().getTime();
});
mp.keys.bind(Keys.VK_3, false, function () { // 3 key
if (!loggedin || chatActive || new Date().getTime() - global.lastCheck < 1000 || global.menuOpened || mp.gui.cursor.visible) return;
mp.events.callRemote('changeweap', 3);
global.lastCheck = new Date().getTime();
});
Или вот к примеру есть на кнопки 1.2.3 оружие но как вывести на дисплей сам слот что бы выидно было какое оружие щас у тебя