mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
styling: Enforced styling across all files (#55)
This commit is contained in:
165 files changed
+1879
-1725
No files matched your search
@@ -16,40 +16,38 @@ 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);
|
||||
|
||||
});
|
||||
|
||||
onNet(events.CONTACTS_ADD_CONTACT_SUCCESS, () => {
|
||||
emitNet(events.CONTACTS_GET_CONTACTS)
|
||||
})
|
||||
|
||||
emitNet(events.CONTACTS_GET_CONTACTS);
|
||||
});
|
||||
|
||||
RegisterNuiCallbackType(events.CONTACTS_UPDATE_CONTACT);
|
||||
on(`__cfx_nui:${events.CONTACTS_UPDATE_CONTACT}`, (data: any) => {
|
||||
const contact = data;
|
||||
emitNet(events.CONTACTS_UPDATE_CONTACT, contact)
|
||||
})
|
||||
emitNet(events.CONTACTS_UPDATE_CONTACT, contact);
|
||||
});
|
||||
|
||||
onNet(events.CONTACTS_UPDATE_CONTACT_SUCCESS, () => {
|
||||
emitNet(events.CONTACTS_GET_CONTACTS)
|
||||
})
|
||||
emitNet(events.CONTACTS_GET_CONTACTS);
|
||||
});
|
||||
|
||||
RegisterNuiCallbackType(events.CONTACTS_DELETE_CONTACT);
|
||||
on(`__cfx_nui:${events.CONTACTS_DELETE_CONTACT}`, (data: any) => {
|
||||
const contact = data;
|
||||
emitNet(events.CONTACTS_DELETE_CONTACT, contact)
|
||||
})
|
||||
emitNet(events.CONTACTS_DELETE_CONTACT, contact);
|
||||
});
|
||||
|
||||
onNet(events.CONTACTS_DELETE_CONTACT_SUCCESS, () => {
|
||||
emitNet(events.CONTACTS_GET_CONTACTS)
|
||||
})
|
||||
emitNet(events.CONTACTS_GET_CONTACTS);
|
||||
});
|
||||
|
||||
onNet(events.CONTACTS_ACTION_RESULT, (result: string) => {
|
||||
SendNuiMessage(
|
||||
JSON.stringify({
|
||||
app: "CONTACTS",
|
||||
method: 'setAlert',
|
||||
data: result
|
||||
method: "setAlert",
|
||||
data: result,
|
||||
})
|
||||
)
|
||||
})
|
||||
);
|
||||
});
|
||||
Reference in new issue
Block a user