SOZ-Faut-etre-Sub / SOZ-FiveM-Server

SOZ Fivem Server Source Code
https://soz.zerator.com
MIT License
198 stars 85 forks source link

[Phone] Send a message without contact #190

Open Mcfloy opened 1 year ago

Mcfloy commented 1 year ago

Is there an existing issue for this?

In which category does your improvement fall?

Phone

Explain the current situation that you do not think is right.

We can't send a message without saving the contact before, which is not ergonomic.

How is the improvement you propose?

On the phone's numpad, add a button next to the green phone to send a message, if the phone number does not exist just create a contact with the phone number as the name before displaying the page.

Vaillp commented 1 year ago

Actualy I have a solution for this with this display : image

If it's good for you I can try to push my file "...\SOZ-FiveM-Server\resources[soz]\soz-phone\src\nui\apps\dialer\pages\DialerKeyboard.tsx" here.

With this, no need to create a new contact. It just use the same fonction to send a message than the society-messages app. The number must be 8 characters long. (like the call button) And it must be a valid number on the server. (inherited from the "navigate(/messages/new/${phoneNumber})" function)

NariieL commented 1 year ago

Accepted. You have the liberty of developing this, thank you. <3 Please use this type of display.

image