Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
function ready() {
showCursor(true);
alt.emitServer('mdc:GetData');
}
function turnIn(hash) {
alt.emitServer('mdc:TurnIn', hash);
}
function pursue(hash) {
alt.emitServer('mdc:Pursue', hash);
}
alt.on('keyup', key => {
if (key === 'u'.charCodeAt(0)) {
// showDialogue();
}
});
export function pushLine(text) {
pushMessage(null, text);
}
export function isChatHidden() {
return hidden;
}
export function isChatOpen() {
return opened;
}
alt.onServer('chatmessage', pushMessage);
alt.on('keyup', (key) => {
if (!loaded)
return;
if (!opened && key === 0x54 && alt.gameControlsEnabled()) {
opened = true;
view.emit('openChat', false);
alt.emit('chatOpened');
alt.toggleGameControls(false);
}
else if (!opened && key === 0xBF && alt.gameControlsEnabled()) {
opened = true;
view.emit('openChat', true);
alt.emit('chatOpened');
alt.toggleGameControls(false);
}
else if (opened && key == 0x1B) {
function loadInterval(key) {
if (key !== 'loggedin') return;
alt.off('meta:Changed', loadInterval);
alt.on('keyup', keyup);
alt.on('keydown', keydown);
}
function loadInterval(key) {
if (key !== 'loggedin') return;
alt.off('meta:Changed', loadInterval);
alt.on('keyup', keyup);
alt.on('keydown', keydown);
}