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

Bigger number amounts #169

Open
Mane48 opened this issue Nov 3, 2020 · 1 comment
Open

Bigger number amounts #169

Mane48 opened this issue Nov 3, 2020 · 1 comment

Comments

@Mane48
Copy link

Mane48 commented Nov 3, 2020

Hi :D

Is there a way I can allow parentheses in this section of the phone?
image

I have a area code set in the register phone so it would say something like :
(213)-rand-rand
But when calling I cant place all those numbers...
image
In this part it does not allow me to set more than 10 digits, how can I change this?

@Mane48 Mane48 changed the title esx:playerLoaded Bigger number amounts Nov 11, 2020
@MaDHouSe79
Copy link

MaDHouSe79 commented Jan 7, 2021

server.lua:
add this inplace of youre code,

--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

function getPhoneRandomNumber()
   return '0' .. math.random(600000000,699999999)
end

it generate a 06 number with 10 digits
hope it helps.

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

2 participants