N3MTV / gcphone

Téléphone pour FiveM
104 stars 225 forks source link

[SOLUTION] gcphone not generating phone number #360

Open keydijs opened 4 years ago

keydijs commented 4 years ago

Hello,

I am posting this because I want to tell my story and help other people. First time I installed gcphone, it wasn't generating a phone number for me. I had 2 different issues - 1. it wasn't generating the number at all, and in the database it showed phone_number NULL. 2.- the phone number was showing as ####-###. I solved this issue my myself, here is what I did.

Obviously if you have any other phone resource like esx_phone disable it in the server.cfg file. Put a hashtag in front of it like this #start esx_phone. It is important to type start gcphone and start esx_addons_gcphone before any job resource. Like this

start esx_addons_gcphone
start gcphone

start esx_job1
start esx_job2 etc.

If you had a previous phone resource you want to clear your database from any files related to it. Drop all the tables related to phone like phone_calls, phone_app_chat, etc. Also delete column 'phone_number' in the 'users' table by typing this in SQL -

ALTER TABLE users
DROP COLUMN phone_number;

After this delete your character in the users table, so that the table is clean, nothing is registered on it. Then insert all the SQL provided in the gcphone file.

restart your server, live an healthy and positive life. Thank me later :). Is you have any more questions I will try to answer them.

ghost commented 3 years ago

Hi , i did what you sayd , but it still didnt worked for me. Maybe i did something wrong , could you help me do that ? Discord : 🍺🍻Levis Girtas🍺🍻#9489