-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(contacts): show own contact and added nearby share option
- Loading branch information
1 parent
ac9a138
commit befd9be
Showing
6 changed files
with
130 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
import { ContactEvents } from '@typings/contact'; | ||
import { RegisterNuiProxy } from './cl_utils'; | ||
import { sendContactsEvent } from "../utils/messages"; | ||
|
||
RegisterNuiProxy(ContactEvents.PAY_CONTACT); | ||
RegisterNuiProxy(ContactEvents.GET_CONTACTS); | ||
RegisterNuiProxy(ContactEvents.ADD_CONTACT); | ||
RegisterNuiProxy(ContactEvents.DELETE_CONTACT); | ||
RegisterNuiProxy(ContactEvents.UPDATE_CONTACT); | ||
RegisterNuiProxy(ContactEvents.LOCAL_SHARE) | ||
|
||
const exp = global.exports | ||
|
||
onNet("npwd:contacts:receiveContact", (data: unknown) => { | ||
sendContactsEvent(ContactEvents.ADD_CONTACT_EXPORT, data); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters