Merge branch 'master' into feat/sellout-app

This commit is contained in:
Christopher Gjelten authored and GitHub committed 2020-10-18 22:08:56 +02:00
commit 771ad147d7
46 files changed
+4495 -587

No files matched your search

+7 -8
View File
@@ -1,15 +1,14 @@
import { ESX } from '../client/client';
import events from '../utils/events';
import { ESX } from "../client/client";
import events from "../utils/events";
onNet(events.CONTACTS_SEND_CONTACTS, (contacts: any) => {
SendNuiMessage(
JSON.stringify({
app: 'CONTACTS',
method: 'setContacts',
data: contacts
app: "CONTACTS",
method: "setContacts",
data: contacts,
})
)
);
});
RegisterNuiCallbackType(events.CONTACTS_ADD_CONTACT);
@@ -18,7 +17,7 @@ on(`__cfx_nui:${events.CONTACTS_ADD_CONTACT}`, (data: any) => {
const number = data.number;
const avatar = data.avatar;
emitNet(events.CONTACTS_ADD_CONTACT, number, display, avatar);
setTimeout(() => {
emitNet(events.CONTACTS_GET_CONTACTS)
}, 500)