mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 14:38:45 +00:00
16 lines
480 B
TypeScript
16 lines
480 B
TypeScript
import { ESX } from './client';
|
|
import events from '../utils/events';
|
|
|
|
const exp = (global as any).exports;
|
|
|
|
RegisterNuiCallbackType(events.PHONE_BEGIN_CALL);
|
|
on(`__cfx_nui:${events.PHONE_BEGIN_CALL}`, (data: any) => {
|
|
emitNet(events.PHONE_BEGIN_CALL, data.number)
|
|
})
|
|
|
|
|
|
onNet(events.PHONE_START_CALL, (target: string, phoneNumber: string, id: any) => {
|
|
console.log(`You are talking to ${target} who as the number ${phoneNumber}`);
|
|
exp["mumble-voip"].SetCallChannel(id+1)
|
|
})
|