mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Merge branch 'feat/calling-lua-ts' of https://github.com/project-error/new-phone-who-dis into feat/calling-lua-ts
This commit is contained in:
commit
8ff9017902
1 file changed
+2
-3
@@ -1,7 +1,7 @@
|
|||||||
import { ESX } from './client';
|
import { ESX } from './client';
|
||||||
import events from '../utils/events';
|
import events from '../utils/events';
|
||||||
import { ICall } from '../../phone/src/common/typings/call';
|
import { ICall } from '../../phone/src/common/typings/call';
|
||||||
import config from '../utils/config'
|
import config from '../utils/config';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|
||||||
const exp = (global as any).exports;
|
const exp = (global as any).exports;
|
||||||
@@ -9,8 +9,7 @@ const exp = (global as any).exports;
|
|||||||
RegisterNuiCallbackType(events.PHONE_INITIALIZE_CALL);
|
RegisterNuiCallbackType(events.PHONE_INITIALIZE_CALL);
|
||||||
on(`__cfx_nui:${events.PHONE_INITIALIZE_CALL}`, (data: any) => {
|
on(`__cfx_nui:${events.PHONE_INITIALIZE_CALL}`, (data: any) => {
|
||||||
const timestamp = dayjs().locale(config.Locale).format('HH:mm');
|
const timestamp = dayjs().locale(config.Locale).format('HH:mm');
|
||||||
const start = Date.now()
|
const start = Date.now();
|
||||||
|
|
||||||
|
|
||||||
emitNet(events.PHONE_INITIALIZE_CALL, data.number, timestamp, start);
|
emitNet(events.PHONE_INITIALIZE_CALL, data.number, timestamp, start);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user