[Tutorial] - GCPhone - Adding calls and job messages

Can it be due to ZAP hosting?

esx_addons_gcphone is in resources[esx]
and gcphone is in resources

Best ,

In which file can I translate this into Dutch, it is for my server! Can you say what File I am talking mainly about the file then I can use it! Of course we are very satisfied with it! Thanks in advance!

Greetings Kian


Hi! :smiley:
I get this error when I open the messages on the phone

nui://gcphone/html/static/js/vendor.js:6, TypeError: Cannot read property ‘0’ of undefined

later, I open to open guiding myself more or less as it is and I am going to write a message, I send the message and I do not see it and I skip this other error:

nui://gcphone/html/static/js/vendor.js:6, TypeError: Cannot read property ‘scrollIntoViewIfNeeded’ of null

Instalation and server.cfg

Instalation:

gcphone -> /resources
vdk_call ->/resources
esx_addons_gcphone -> /resources/esx

server.cfg:

DEFAULT ESX/ESSENTIAL

start mysql-async
start essentialmode
start esplugin_mysql
start es_admin2
start es_extended
start esx_menu_default
start esx_menu_list
start esx_menu_dialog
start async

GCPHONE

start vdk_call
start gcphone
start esx_addons_gcphone

photos

https://gyazo.com/b16ba836996dd869253536e98c97de90
https://gyazo.com/81b441ccef3d8b1911d81136567530a7
https://gyazo.com/afe1cf2d5975a69a24090ae8b6ae43a7

Thanks :slight_smile:

Hi,
Check gcphone/html/static/config/config.json and gcphone/html/static/js/app.js #Line 3195

Hello o7
Check my version if you want.

Mysql-async2.x => https://github.com/HalCroves/gcphone/tree/mysql-async-2.x
Mysql-async3.x => https://github.com/HalCroves/gcphone/tree/mysql-async-3.x

If you have a problem with sql error (mysql_fetch_scalar returns {}) => https://github.com/brouznouf/fivem-mysql-async/pull/61/files

o/

1 Like

I downloaded
Mysql-async3.x => https://github.com/HalCroves/gcphone/tree/mysql-async-3.x

And now it works perfectly, thanks

Hi everyone i have a question:
The Police and Ambulance distress signal works but i cannot get the Mechanic job to get the distress signal…

How do i fix this ??/

little question. When i send a message to anyone it just puts out a white screen (screenshot included) but when i restart gcphone it outputs it correctly. Also when i send it, it doesnt show the message directly. Only after a white screen and a restart

and something else. Its not just with the messages. Its also with the Dark Chat. It seems like the messages arent syncing because like mentioned before, every messages shows up once the resource is restarted

o7 Hi,
Because you use mysql_async 3.0.8 and server.lua was not update i think…
=> [Tutorial] - GCPhone - Adding calls and job messages

well. the problem is that our server can only use 3.0.8. is there a way for us to use it with 3.0.8?
Thanks for the quick reply

Hello, Thanks! got it to work. But I have another question. Is it possible to send the police/medic/fire a message like in the normal esx_phone? Because now you can only send them a message and it doesnt get recognized by the esx job

got a question do i need to turn off esx_phone and delete the phone numbers out of the database and then add the sql for the gc phone in to get everything to work

Hello, I have a problem … I install my gcphone and everything that goes with it but when I press the key to open it in game I have an error that says: es_extended [gcphone: get item account] does not exist. Someone to help me please?

Hello, is there any way to make the phone work with the normal esx police and medic/fire/mechanic numbers? Because in the normal phone you can send a message to these services. Thanks

Hello @SuisseGames

Im trying to convert this to essentialmode without ESX, So far its going well but in the code here:

AddEventHandler('es:playerLoaded', function(_source)
    --local _source = source
    -- Get the players money amount
    TriggerEvent("es:getPlayerFromId", _source, function(user)
  local xPlayer = getPlayerID(_source)
  print(xPlayer)
 
  MySQL.Async.fetchAll('SELECT * FROM users WHERE identifier = @identifier',{
    ['@identifier'] = xPlayer}, function(result)
    print(result[1])
 
    local phoneNumber = result[1].phone_number
    xPlayer.set('phoneNumber', phoneNumber)
 
    if PhoneNumbers[xPlayer.job.name] ~= nil then
      TriggerEvent('esx_addons_gcphone:addSource', xPlayer.job.name, _source)
   end
  end)
 end)
end)

Im getting the error attempt to call a nil value (field 'set')
For the code: xPlayer.set('phoneNumber', phoneNumber)

What is the set actually doing here? And is there a quick solution to resolve this?

Thanks <3

Hi, Maybe check her : https://github.com/HalCroves/gcphone/blob/9c717110ff9644643ae1f0f4dedc906f3e45aa26/gcphone/html/static/config/config.json#L129 ?

Hi, send your files, it’s was mor easy with.

Phone works like it should, just sometimes after its put away it remains in the hand.