feat(camera): refactor to new promise event format

This commit is contained in:
Christopher authored and Taso committed 2021-07-27 17:04:28 -04:00
1 parent 1566bb0fdb
commit 4e8c57492b
15 files changed
+274 -141

No files matched your search

-6
View File
@@ -139,12 +139,6 @@ on(`__cfx_nui:${PhoneEvents.OPEN_APP_BANK}`, (data: any, cb: Function) => {
cb();
});
RegisterNuiCallbackType(PhoneEvents.OPEN_APP_CAMERA);
on(`__cfx_nui:${PhoneEvents.OPEN_APP_CAMERA}`, (data: any, cb: Function) => {
emitNet(PhotoEvents.FETCH_PHOTOS);
cb();
});
RegisterNuiCallbackType(PhoneEvents.OPEN_APP_DAILER);
on(`__cfx_nui:${PhoneEvents.OPEN_APP_DAILER}`, (data: any, cb: Function) => {
emitNet(CallEvents.FETCH_CALLS);