mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 14:38:46 +00:00
- Logs out to a file w/ relevant meta data - Provides better readability for end user This should help provide better troubleshooting for both development and end users. This also fixes any previous catches that were attempting to print stack traces, causing the [object Object] message to appear. Co-authored-by: Christopher Gjelten <[email protected]>
26 lines
587 B
TypeScript
26 lines
587 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;
|
|
|
|
export const getSource = () => (global as any).source;
|
|
|
|
emit('esx:getSharedObject', (obj: Server) => (ESX = obj));
|
|
|
|
on('onServerResourceStart', (resource: string) => {
|
|
if (resource === GetCurrentResourceName()) {
|
|
mainLogger.info('Sucessfully started');
|
|
}
|
|
});
|