Skip to content

Commit

Permalink
Merge pull request #8 from Basarus/patch-1
Browse files Browse the repository at this point in the history
altv 5.1 upd
  • Loading branch information
Stuyk committed Jul 25, 2021
2 parents 7460e6b + 8dc28fc commit eae2cfc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/example/client/panels/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,17 @@ function handleKeyup(key) {

if (!opened && key === 0x54 && alt.gameControlsEnabled()) {
opened = true;
view.focus();
view.emit('openChat', false);
alt.toggleGameControls(false);
} else if (!opened && key === 0xbf && alt.gameControlsEnabled()) {
opened = true;
view.focus();
view.emit('openChat', true);
alt.toggleGameControls(false);
} else if (opened && key == 0x1b) {
opened = false;
view.unfocus();
view.emit('closeChat');
alt.toggleGameControls(true);
}
Expand Down

0 comments on commit eae2cfc

Please sign in to comment.