mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(calling/client|server): handling timestamps for calls
This commit is contained in:
1 parent
da4592d531
commit
342fd9aaba
2 files changed
+17
-9
No files matched your search
@@ -1,12 +1,15 @@
|
||||
import { ESX } from './client';
|
||||
import events from '../utils/events';
|
||||
import { ICall, ICallUI } from '../../phone/src/common/typings/call';
|
||||
import config from '../utils/config'
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const exp = (global as any).exports;
|
||||
|
||||
RegisterNuiCallbackType(events.PHONE_INITIALIZE_CALL);
|
||||
on(`__cfx_nui:${events.PHONE_INITIALIZE_CALL}`, (data: any) => {
|
||||
emitNet(events.PHONE_INITIALIZE_CALL, data.number);
|
||||
const timestamp = dayjs().locale(config.Locale).format('HH:mm')
|
||||
emitNet(events.PHONE_INITIALIZE_CALL, data.number, timestamp);
|
||||
});
|
||||
|
||||
onNet(
|
||||
|
||||
Reference in new issue
Block a user