project-error / npwd

NPWD is a FiveM phone resource written entirely in TypeScript and React.
https://projecterror.dev
Other
338 stars 277 forks source link

Add support for give contact details #1029

Open BackSH00TER opened 12 months ago

BackSH00TER commented 12 months ago

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

Pull Request Checklist: