Check keybinds

This commit is contained in:
Vortrex
2021-07-25 22:19:37 -05:00
parent 99181c1c05
commit a5bf41f545

View File

@@ -91,7 +91,7 @@ function setWalkieTalkieFrequencyCommand(command, params, client) {
}
if(getItemData(getPlayerActiveItem(client)).enabled) {
if(doesPlayerHaveKeyBindForCommand(client, "use")) {
if(!doesPlayerHaveKeyBindsDisabled(client) && doesPlayerHaveKeyBindForCommand(client, "use")) {
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`);