mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(contacts/server|client): events for alerts
This commit is contained in:
1 parent
da32d2ca35
commit
4d6bc53eea
2 files changed
+16
-4
No files matched your search
@@ -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
|
||||
})
|
||||
)
|
||||
})
|
||||
Reference in new issue
Block a user