Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add support for give contact details#1029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
BackSH00TER wants to merge1 commit intoproject-error:master
base:master
Choose a base branch
Loading
fromBackSH00TER:give-contact-details

Conversation

@BackSH00TER
Copy link
Contributor

Pull Request Description

This PR adds support for giving contact details to other nearby players.
It will get the closest player and will open their phone onto the fill new contact screen with the name and number prefilled. The user then just has to save it.

To use this, users would be expected to update their radial menu to use the'npwd:GiveContactDetails event.
Example w/ qb-radialmenu

{id='givenum',title='Give Contact Details',icon='address-book',type='client',event='npwd:GiveContactDetails',shouldClose=true},

If one already exists it will show the already populated contact card and the user can update it from there.

Example:
https://clipchamp.com/watch/9zspIfzTHbG

  • Sharing when nobody is around will notify you that nobody is nearby
  • Sharing to a new player will open their phone to the contacts page with the info filled out
  • Sharing to a player that already has your contacts opens to the page to edit the contact details

Pull Request Checklist:

  • Have you followed the guidelines in our Contributing document and Code of Conduct?
  • Have you checked to ensure there aren't other openPull Requests for the same update/change?
  • Have you built and tested NPWD in-game after the relevant change?

import{ContactEvents}from'@typings/contact';
import{RegisterNuiProxy}from'./cl_utils';

constQBCore=global.exports['qb-core'].GetCoreObject();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

As this is supposed to be as standalone as possible, we cannot use any third party library. We have these exports for external use only.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@itschipitschipitschip requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@BackSH00TER@itschip

[8]ページ先頭

©2009-2025 Movatter.jp