Skip to content

Commit

Permalink
altv 5.1 upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Basarus committed Jul 25, 2021
1 parent 7460e6b commit 8dc28fc
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 8dc28fc

Please sign in to comment.