inital ts commit

This commit is contained in:
Christopher committed 2021-01-17 20:09:35 +01:00
1 parent 6bb534231b
commit 22c36f0920
2 files changed
+49

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
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)
})