Use new keybind utils

This commit is contained in:
Vortrex
2021-07-13 00:57:12 -05:00
parent 60704733bb
commit 1c646cc8c3
2 changed files with 142 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ function setWalkieTalkieFrequencyCommand(command, params, client) {
if(getItemData(getPlayerActiveItem(client)).enabled) {
if(doesPlayerHaveKeyBindForCommand(client, "use")) {
messagePlayerError(client, `Your walkie talkie is turned off. Press ${sdl.getKeyName(getPlayerKeyBindForCommand(client, "use").key)} to turn it on`);
messagePlayerError(client, `Your walkie talkie is turned off. Press ${toUpperCase(getKeyNameFromId(getPlayerKeyBindForCommand(client, "use")).key)} to turn it on`);
} else {
messagePlayerError(client, `Your walkie talkie is turned off. Type ${getInlineChatColourByName("lightGrey")}/use ${getInlineChatColourByName("white")}to turn it on`);
}