mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Merge branch 'master' into feat/sellout-app
This commit is contained in:
46 files changed
+4495
-587
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user