Files
new-phone-who-dis/resources/server/server.ts
T
Taso 1aa6a383ab refactor(server/source-handling): Altered how we handle source
These changes are made in case source is not guranteed to remain the same

Due to how JS should operate, this shouldn't be an issue but this just ensures that
2021-02-14 20:17:41 -05:00

24 lines
531 B
TypeScript

import { Server } from 'esx.js';
import './db';
import './sv_twitter';
import './sv_main';
import './sv_contacts';
import './sv_sellout';
import './sv_bank';
import './sv_notes';
import './sv_photo';
import './sv_messages';
import './sv_call';
import { mainLogger } from './sv_logger';
export let ESX: Server = null;
emit('esx:getSharedObject', (obj: Server) => (ESX = obj));
on('onServerResourceStart', (resource: string) => {
if (resource === GetCurrentResourceName()) {
mainLogger.info('Sucessfully started');
}
});