Add reset keybinds cmd

This commit is contained in:
Vortrex
2022-07-11 17:38:59 -05:00
parent 09bbca49db
commit 78f53f7af7

View File

@@ -93,6 +93,15 @@ function removeKeyBindCommand(command, params, client) {
// ===========================================================================
function resetKeyBindsCommand(command, params, client) {
getPlayerData(client).promptType = AGRP_PROMPT_RESETKEYBINDS;
showPlayerPrompt(client, getLocaleString(client, "ResetAllKeyBindsConfirm"), getLocaleString(client, "GUIWarningTitle"), getLocaleString(client, "Yes"), getLocaleString(client, "No"));
//removePlayerKeyBind(client, keyId);
//messagePlayerSuccess(client, `You removed the keybind for the {ALTCOLOUR}${toUpperCase(getKeyNameFromId(keyId))} {MAINCOLOUR}key`);
}
// ===========================================================================
function addPlayerKeyBind(client, keys, command, params, tempKey = false) {
let keyBindData = new KeyBindData(false, keys, `${command} ${params}`);
if (tempKey == true) {