Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phone Number #83

Closed
sflabrie opened this issue Dec 15, 2020 · 8 comments
Closed

Phone Number #83

sflabrie opened this issue Dec 15, 2020 · 8 comments

Comments

@sflabrie
Copy link

Hi (Again)
The phone number appear xxxxx (only 5 number). What i need to do to have xxx-xxxx

This is what is active in server.lua
--- For phone numbers like: XXX-XXXX
function getPhoneRandomNumber()
local numBase0 = math.random(100,999)
local numBase1 = math.random(0,9999)
local num = string.format("%03d-%04d", numBase0, numBase1)

return num

end

and this in the .../[Phone]/gcphone/html/static/config/config.json

"useFormatNumberFrance": false,

So what i need to do to have the phone number like this xxx-xxxx

thanks

@RockySouthpaw
Copy link
Contributor

The phone number is already XXX-XXXX by default?

@sflabrie
Copy link
Author

That's not work because the phone number that i have right now is 90236 (see Image)

What i need to do to be sure the phone number it's xxx-xxxx.
20201217112845_1

@RockySouthpaw
Copy link
Contributor

This isn’t something wrong with the phone. It’s something you did due to improper installation.

@sflabrie
Copy link
Author

Okay, but I don't change anything in the phone i only do the installation.
I don't do any modification in the folder.

I tried to put in France Number and i have the 5 number too.

@BombayV
Copy link
Contributor

BombayV commented Dec 17, 2020

Just install the phone from the releases tab and try it. It should be a XXX-XXXX by default as ROCKY said. Do a fresh start without changing the code.

@sflabrie
Copy link
Author

I delete all the file and reinstall everything and i have the 5 number.
And i change nothing in the file.

@RockySouthpaw
Copy link
Contributor

Truncate your tables you made. You must have created them with something else before.

@sflabrie
Copy link
Author

I do it a clear all the information in my table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants