feat(contacts/server|client): events for alerts

This commit is contained in:
Christopher committed 2020-12-11 22:02:37 +01:00
1 parent da32d2ca35
commit 4d6bc53eea
2 files changed
+16 -4

No files matched your search

+10
View File
@@ -42,4 +42,14 @@ on(`__cfx_nui:${events.CONTACTS_DELETE_CONTACT}`, (data: any) => {
onNet(events.CONTACTS_DELETE_CONTACT_SUCCESS, () => {
emitNet(events.CONTACTS_GET_CONTACTS)
})
onNet(events.CONTACTS_ACTION_RESULT, (result: string) => {
SendNuiMessage(
JSON.stringify({
app: "CONTACTS",
method: 'setAlert',
data: result
})
)
})