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();
}
});
this.party.forEach(player => {
if (lastObjective) {
alt.emit('job:ObjectiveComplete', this.identifier, lastObjective, player);
}
player.playAudio('complete');
objective.sync(player);
});
exec(player) {
if (!player || !player.valid) {
return;
}
if (utilityVector.distance(player.pos, this.pos) > this.radius) {
player.emitMeta('interaction', undefined);
return;
}
alt.emit(this.serverEventName, player, this.indexValue);
}
}
options.forEach(option => {
const res = cache.get(option.name);
const value = res === null ? true : res;
alt.emit('option:Changed', option.name, value);
});
}
this.party.forEach(player => {
player.send('The job has been complete.');
player.job = undefined;
player.playAudio('complete');
alt.emitClient(player, 'objective:Info', null);
this.removeJobVehicles(player, true);
alt.emit('job:Complete', this.identifier, player);
});
return;
baseItem.eventcall.forEach(event => {
if (event === '') {
player.syncInventory();
return;
}
alt.emit(event, player, item, hash);
});
} else {
alt.Player.all.forEach(player => {
if (player.loginTimeout !== undefined && player.loginTimeout !== null) {
alt.emit('discord:CheckLoginTimeout', player);
}
});
}, 60000);
currentPlayers.forEach(player => {
player.send(
`Faction ${faction.name} has neutralized turf ${colshapes[turfID].sector.name}.`
);
if (player.colshape && player.colshape === colshapes[turfID]) {
alt.emit('entityEnterColshape', colshapes[turfID], player);
}
});
return;
chat.registerCmd('acceptfaction', player => {
alt.emit('faction:AcceptMember', player);
});
export function exitDynamicDoor(player, id) {
alt.emit('door:ExitDynamicDoor', player, id);
}