mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 14:38:46 +00:00
25 lines
568 B
TypeScript
25 lines
568 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 './players/sv_player_events';
|
|
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');
|
|
}
|
|
});
|