manueljlz / gcphone

Telephone for FiveM by ElBichop
88 stars 115 forks source link

Bigger number amounts #169

Open Mane48 opened 3 years ago

Mane48 commented 3 years ago

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?

MaDHouSe79 commented 3 years ago

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.