mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 22:17:39 +00:00
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
24 lines
531 B
TypeScript
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');
|
|
}
|
|
});
|