mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
feat(call/client|server): use Unix
This commit is contained in:
1 parent
08d848054e
commit
ae1715f173
1 file changed
+5
-2
@@ -8,8 +8,11 @@ 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');
|
||||||
emitNet(events.PHONE_INITIALIZE_CALL, data.number, timestamp);
|
const start = Date.now()
|
||||||
|
|
||||||
|
|
||||||
|
emitNet(events.PHONE_INITIALIZE_CALL, data.number, timestamp, start);
|
||||||
});
|
});
|
||||||
|
|
||||||
onNet(
|
onNet(
|
||||||
|
|||||||
Reference in new issue
Block a user