[Tutorial] - GCPhone - Adding calls and job messages

Read the tutorial :

  1. Download the gcphone and esx_addons_gcphone
  2. Put the downloaded files on your ftp.
  • server-data/resources/
  • gcphone => in “server-data/resources/”
  • esx_addons_gcphone => in “server-data/resources/[ESX]”
  1. In, your server.cfg, put before the jobs addons :
  • start gcphone
  • start esx_addons_gcphone

Like this :

# you probably don't want to change these!
# only change them if you're using a server with multiple network interfaces

####################### PORT DU SERVEUR
endpoint_add_tcp "0.0.0.0:30120"
endpoint_add_udp "0.0.0.0:30120"

####################### CONFIG ES
set es_enableCustomData 1

####################### BASE DE DONNEES
set mysql_connection_string "server=localhost;database=essentialmode;userid=root;password=Saxophone21121993+"

####################### ES Base
start mysql-async
start essentialmode
start esplugin_mysql
start es_admin2 

####################### BASIC
start instance
start es_extended
start esx_voice
start esx_addons_gcphone
start gcphone

###### Jobs ######
start esx_service
start esx_mecanojob
start esx_lscustom
start esx_truckerjob
2 Likes

For some reason whenever I try to join the server with this script in it says could not load gcphone.

Im trying to translate this but i cannot translate everything from gcphone/html/static/config folder. Where do i translate the rest of things that are in french. Sorry for my bad english.

i can’t change hotkey from f2 to f1 , on f2 all works fine but when i change to f1 got issue without wrong config file but i know f1 - 288

the police and ambulance dont get messages i dont know what…

 "serviceCall": [
    {
      "display": "Police",
      "icon": "/html/static/img/icons_app/bank.png",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "police"
          }
        },
        {
          "title": "Appeler le standard",
          "eventName": "gcphone:autoCallNumber",
          "type": {
            "number": "911"
          }
        }
      ]
    },
    {
      "display": "Ambulance",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "ambulance"
          }
        }
      ]
    }
  ],
  1. In, your server.cfg, put before the jobs addons :
  • start gcphone
  • start esx_addons_gcphone

it still doesn’t work this is in my config

## From ESX Pack ##
start esx_addons_gcphone
start gcphone
start async
start cron
start es_extended
start instance
start es_camera

If you have a whitescreen GC phone this is why (Zap Hosting):

-DO NOT RUN the SQL file.
-Load SQL File -> Run Query (Play button in Heidi)

When you do it this will, it will work.

Hello wanted to hear if anybody had a version working for vrp???
Thanks

I resolved my other issue but basically I have 2 problems.

  1. Can’t use up arrow key in a vehicle while going through SMS messages
  2. Can’t send player to player GPS coords, but police/ems cords work.

No errors.

Help me, how to fix its error?

nimet%C3%B6n

Im still having this problem help!

I think it needs to be below es_extended but before the job scripts for it to work properly.

did you install each folder in the resource in the proper locations?

indeed, https://github.com/BTNGaming/btn_gcphone this version has been translated to english

Hello,
last time I wanted to install gcphone, everything worked I could take the phone out of my pocket, but no apss was loaded and I didn’t know how and where to install the file src_htmlPhone. Can you help me out?

Can anyone point me in a direction of a cheap/free webrtc server? Or will i host my own for my gcphone?

Clear your client cache and make sure you have MySQL corrected version, same as the phone.

How could I set it up to have an area code like (657) 867-5555 in which the 657 doesnt change but the other 7 numbers do, Ive tried a few ways but they do not work.

Edit - I figured it out after a little more time if anyine else would like to do this here it is’

function getPhoneRandomNumber()
	local numBase0 = '657' .. math.random(100,999)
	local numBase1 = math.random(0,9999)
	local num = string.format("%03d-%04d", numBase0, numBase1 )
	return num
end

I just cant get Parenthesis or a dash so it shows like 657867-5555

Is there a better tutorial than this? This is very hard to follow / read.

Getting this error whenever we try to add a phone number or call someone, etc.

Anyone know why?

1 Like