[Tutorial] - GCPhone - Adding calls and job messages

68747470733a2f2f692e696d6775722e636f6d2f4c4169636f764b2e706e67 68747470733a2f2f692e696d6775722e636f6d2f6e6154694267492e706e67 68747470733a2f2f692e696d6775722e636f6d2f696d57506f68412e706e67

Tutorial For this script

[V2_Beta_06] work 100% for call and message and is à beautiful mobile.

Config message job with GPS job
Htlm…gcphone\html\static\config---- gcphone (edit with notepad ++)

example add job


{                                                              --you can put a label that you do not want too long
      "display": "Gouverment",                       -- alias , label job here ''labelname",
      "backgroundColor": "red",                         -- color job in gcphone red, blue, green....
      "subMenu": [                                                --not all colors work
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "state"                                -- Job name in ddb ,database                                            
          }                                                             -- you have to have this job if not remove or replace
        }                                
      ]
    },

example my script
- with a job that is registered in my database

{
      "display": "Ambulance",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "ambulance"
          }
        }
      ]
    },
	{                                                              --you can put a label that you do not want too long
      "display": "Gouvernement",                       -- alias , label job here ''labelname",
      "backgroundColor": "red",                         -- color job in gcphone red, blue, green....
      "subMenu": [                                                --not all colors work
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "state"                                -- Job name in ddb ,database                                            
          }                                                             -- you have to have this job if not remove or replace
        }                                
      ]
    },
	{
      "display": "Army",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "army" 
          }
        }
      ]
    },
	{
      "display": "FIB",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "fib"
          }
        }
      ]
    },
	{
      "display": "Juge",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "juge"
          }
        }
      ]
    },
	{
      "display": "Avocat",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "avocat"
          }
        }
      ]
    },
	{
      "display": "Agent de Securite",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "security"
          }
        }
      ]
    },
	{
      "display": "Espion",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "Espion"
          }
        }
      ]
    },
	{
      "display": "Tueur à gage contract oral baladins",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "baladins"
          }
        }
      ]
    },
	{
      "display": "Voiture Concessionaire",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "cardealer"
          }
        }
      ]
    },
	{
      "display": "Helicoptere concessionaire",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "aircraftdealer"
          }
        }
      ]
    },
	{
      "display": "Bateau concessionaire",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "dock"
          }
        }
      ]
    },
	{
      "display": "Mecano",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "mecano"
          }
        }
      ]
    },
	{
      "display": "Armurier",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "armurier"
          }
        }
      ]
    },
	{
      "display": "Gang Cartel",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "cartel"
          }
        }
      ]
    },
	{
      "display": "Gang Mafia",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "mafia"
          }
        }
      ]
    },
	{
      "display": "Gang",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "gang"
          }
        }
      ]
    },
	{
      "display": "Gang Biker",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "biker"
          }
        }
      ]
    },
	{
      "display": "Eboueur",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "eboueur"
          }
        }
      ]
    },
		{
      "display": "Taxi",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "taxi"
          }
        }
      ]
    },
	{
      "display": "Bus",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "bus"
          }
        }
      ]
    },
	{
      "display": "Journaliste",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "reporter"
          }
        }
      ]
    },
	{
      "display": "Chauffeur pilote",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "pilot"
          }
        }
      ]
    },
	{
      "display": "Chauffeur rally",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "rally"
          }
        }
      ]
    },
	{
      "display": "Discotheque Bar Striptease",
      "backgroundColor": "green",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "disco"
          }
        }
      ]
    },
	{
      "display": "Bahama Bar Deluxe",
      "backgroundColor": "green",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "bahama"
          }
        }
      ]
    },
	{
      "display": "Cuisinier ambulant",
      "backgroundColor": "green",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "foodtruck"
          }
        }
      ]
    },
	{
      "display": "vendeur de tabac",
      "backgroundColor": "green",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "tabac"
          }
        }
      ]
    },
	{
      "display": "Agent Immobilier",
	  "backgroundColor": "green",
      "subMenu": [
        {
		  "title": "Envoyer un message",
          "eventName": "realestateagent"
        }
      ]
    }
  ],

example of an integrated message, for automatic job messages.
In gcphone\html\static\config\config.json
Tanks HalCroves :slight_smile:

{
			"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"
					}
				},                                  -- here example
				{
					"title": "Signaler un vol",                                    --title menu  job message 
					"eventName": "esx_addons_gcphone:call",
					"type": {
						"number": "police",
						"message": "Vol en cours, merci de venir au plus vite !"
					}                                                                          -- message that gets
				},
				{
					"title": "Signaler une agression",
					"eventName": "esx_addons_gcphone:call",
					"type": {
						"number": "police",
						"message": "Victime d'agression"
					}
				}
			]
		},

if hidden message and call IN GAME put # (before phone number)

for configured song : gcphone\html\static\sound
for song youtube download https://www.telechargerunevideo.com/fr/
for cut song https://mp3cut.net/fr/beta/
for convert ogg https://convertio.co/fr/mp4-ogg/
Warning !!! put the same name, otherwise it will not work. (.ogg)

for configured background : gcphone\html\static\img\background
Warning !!! put the same name, otherwise it will not work. (.jpg) (pixel ; L: 640 , H: 1136)

For default le f2 change key in gcphone\client …https://docs.fivem.net/game-references/controls/
For exemple Key G is good for me

example in gcphone\client.lua

local KeyOpenClose = 183 -- 1              --------------------- _(for touch G)_

G ditress/alert signal with GCphone (tanks BntGaming, HalCroves and Elpumpo (https://forum.cfx.re/u/HalCroves) !!!)

In esx_ambulancejob
Find in client/main.lua (L118-130)

function SendDistressSignal()
	local playerPed = PlayerPedId()
	local coords	= GetEntityCoords(playerPed)

	ESX.ShowNotification(_U('distress_sent'))
	TriggerServerEvent('esx_phone:send', 'ambulance', _U('distress_message'), false, {
		x = coords.x,
		y = coords.y,
		z = coords.z
	})
end

And replace with this:

function SendDistressSignal()
	local playerPed = PlayerPedId()
	PedPosition		= GetEntityCoords(playerPed)
	
	local PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z }

	ESX.ShowNotification(_U('distress_sent'))

    TriggerServerEvent('esx_addons_gcphone:startCall', 'ambulance', _U('distress_message'), PlayerCoords, {

		PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z },
	})
end

For call with phone change for Channel gta in script …gcphone\html\static\config------ gcphone (edit with notepad ++)

Edit "useWebRTCVocal": true, by "useWebRTCVocal": false, :

  "//": "useWebRTCVocal: false => Appels avec channels de GTA",
  "//": "useWebRTCVocal: true  => Appels avec WebRTC",
  "useWebRTCVocal": false,
  "RTCConfig": {
    "iceServers": [{
      "urls": ["turn:gannon.ovh"],
      "username": "jojo",
      "credential": "pass"
    }]
  },

The script in french make translate for mobile in game but is à beautiful mobile work 100%

For make a job message IN GAME go in /call(appelle) and favourite (favoris)…

In serveur.cfg

# These are the core FiveM resources
start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start ■■■■■■■
start scoreboard
start playernames
start baseevents

## START ESX ADD ##
start mysql-async
start essentialmode
set mysql_debug false
start esplugin_mysql
start es_admin2
start async
start es_extended
start esx_menu_default
start esx_menu_list
start esx_menu_dialog

## START GCPHONE & HER ADDONS ##
start vdk_call                    ------------------ (just download https://github.com/vodkhard/vdk_call )
start esx_addons_gcphone
start gcphone

## START JOBS AND OTHER ##
start esx_ambulance
start esx_policejob
start esx_.....

example for gcphone\html\static\config (Full)

                                          my script with job where is in my database !!!!
"reseau": "namemobile",
  
  "themeColor": "#303f9f",
  "colors": [
    "#EF5350",
    "#EC407A",
    "#AB47BC",
    "#7E57C2",
    "#5C6BC0",
    "#42A5F5",
    "#29B6F6",
    "#26C6DA",
    "#26A69A",
    "#66BB6A",
    "#9CCC65",
    "#D4E157",
    "#FFCA28",
    "#FFA726",
    "#FF7043",
    "#8D6E63",
    "#78909C"
  ],

  "useFormatNumberFrance": false,

  "useWebRTCVocal": false,
  "RTCConfig": {
    "iceServers": [{
      "urls": ["turn:gannon.ovh"],
      "username": "jojo",
      "credential": "pass"
    }]
  },


  "background" : {
    "Calvin & Hobbes": "back001.jpg",
    "Destiny": "back002.jpg",
    "Stormtrooper": "back003.jpg",
    "Custom URL": "URL"
  },
  "background_default": {
    "label": "Calvin & Hobbes",
    "value": "back001.jpg"
  },


  "coque": {
    "Sansumg S8": "s8.png",
    "Iphone X": "iphonex.png",
    "Brick Base": "base.png",
    "Transparent": "transparent.png"
  },
  "coque_default": {
    "label": "Sansumg S8",
    "value": "s8.png"
  },


  "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"
					}
				},
				{
					"title": "Signaler un vol",
					"eventName": "esx_addons_gcphone:call",
					"type": {
						"number": "police",
						"message": "Vol en cours, merci de venir au plus vite !"
					}
				},
				{
					"title": "Signaler une agression",
					"eventName": "esx_addons_gcphone:call",
					"type": {
						"number": "police",
						"message": "Victime d'agression"
					}
				}
			]
		},
    {
      "display": "Ambulance",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "ambulance"
          }
        }
      ]
    },
{                                                                --you can put a label that you do not want too long
      "display": "Gouvernement",                       -- alias , label job here ''labelname",
      "backgroundColor": "red",                         -- color job in gcphone red, blue, green....
      "subMenu": [                                                --not all colors work
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "state"                                -- Job name in ddb ,database                                            
          }                                                             -- you have to have this job if not remove or replace
        }
      ]
    },
	{
      "display": "Army",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "army"
          }
        }
      ]
    },
	{
      "display": "FIB",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "fib"
          }
        }
      ]
    },
	{
      "display": "Juge",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "juge"
          }
        }
      ]
    },
	{
      "display": "Avocat",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "avocat"
          }
        }
      ]
    },
	{
      "display": "Agent de Securite",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "security"
          }
        }
      ]
    },
	{
      "display": "Espion",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "Espion"
          }
        }
      ]
    },
	{
      "display": "Tueur à gage contract oral baladins",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "baladins"
          }
        }
      ]
    },
	{
      "display": "Voiture Concessionaire",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "cardealer"
          }
        }
      ]
    },
	{
      "display": "Helicoptere concessionaire",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "aircraftdealer"
          }
        }
      ]
    },
	{
      "display": "Bateau concessionaire",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "dock"
          }
        }
      ]
    },
	{
      "display": "Mecano",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "mecano"
          }
        }
      ]
    },
	{
      "display": "Armurier",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "armurier"
          }
        }
      ]
    },
	{
      "display": "Gang Cartel",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "cartel"
          }
        }
      ]
    },
	{
      "display": "Gang Mafia",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "mafia"
          }
        }
      ]
    },
	{
      "display": "Gang",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "gang"
          }
        }
      ]
    },
	{
      "display": "Gang Biker",
      "backgroundColor": "grey",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "biker"
          }
        }
      ]
    },
	{
      "display": "Eboueur",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "eboueur"
          }
        }
      ]
    },
		{
      "display": "Taxi",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "taxi"
          }
        }
      ]
    },
	{
      "display": "Bus",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "bus"
          }
        }
      ]
    },
	{
      "display": "Journaliste",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "reporter"
          }
        }
      ]
    },
	{
      "display": "Chauffeur pilote",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "pilot"
          }
        }
      ]
    },
	{
      "display": "Chauffeur rally",
      "backgroundColor": "orange",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "rally"
          }
        }
      ]
    },
	{
      "display": "Discotheque Bar Striptease",
      "backgroundColor": "green",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "disco"
          }
        }
      ]
    },
	{
      "display": "Bahama Bar Deluxe",
      "backgroundColor": "green",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "bahama"
          }
        }
      ]
    },
	{
      "display": "Cuisinier ambulant",
      "backgroundColor": "green",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "foodtruck"
          }
        }
      ]
    },
	{
      "display": "vendeur de tabac",
      "backgroundColor": "green",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "tabac"
          }
        }
      ]
    },
	{
      "display": "Agent Immobilier",
	  "backgroundColor": "green",
      "subMenu": [
        {
		  "title": "Envoyer un message",
          "eventName": "realestateagent"
        }
      ]
    }
  ],

  "apps": [
    {
      "name": "Téléphone",
      "icons": "/html/static/img/icons_app/call.png",
      "routeName": "appels",
      "inHomePage": true
    },
    {
      "name": "Messages",
      "icons": "/html/static/img/icons_app/sms.png",
      "routeName": "messages",
      "inHomePage": true,
      "puceRef": "nbMessagesUnread"
    },
    {
      "name": "Contacts",
      "icons": "/html/static/img/icons_app/contacts.png",
      "routeName": "contacts",
      "inHomePage": true
    },
    {
      "name": "Paramètres",
      "icons": "/html/static/img/icons_app/settings.png",
      "routeName": "parametre",
      "inHomePage": true
    },
    {
      "name": "Bank",
      "icons": "/html/static/img/icons_app/bank.png",
      "routeName": "bank",
      "inHomePage": false
    },
    {
      "name": "Bourse",
      "icons": "/html/static/img/icons_app/bourse.png",
      "routeName": "bourse",
      "enabled": true
    },
    {
      "name": "Photo",
      "icons": "/html/static/img/icons_app/photo.png",
      "routeName": "photo"
    },
    {
      "name": "Dark Chat",
      "icons": "/html/static/img/icons_app/tchat.png",
      "routeName": "tchat"
    },
    {
      "name": "9GAG",
      "icons": "/html/static/img/icons_app/9gag.png",
      "routeName": "9gag"
    }
  ]
}
42 Likes

Hello, since I tested himself GCPHONE and I love it, I tenné to congratulate you for phone is really at the top once well configured, thank you again to the team N3MTV good luck Thank you

3 Likes

Hello how to change the ambulance’s esx_phone phone number in gcphone to receive distress in coma
sorry for me bad english
pls help

1 Like

I have not tested yet but I think it will work just change the esx_ambulance script.

I explain open all files and search, with the magnifying glass (binoculars) , example with (notepad ++, freesoftware) the words; esx_phone.

and change it to a gcphone.

it should work, but still makes copies, in addition, before modifying the files of esx_ambulance …

otherwise you have the manual key (In Game) in calls/appelle and favorites/ favoris . to send a job message with gps.

Still not working for me…

that it does not work?

1 Like

Changing esx_phone to gcPhone doesn’t work

2 Likes

I work but it’s a long time as a job it will take a little patience … as I already said, just remove the notification g detress in esx_ambulance for the moment and do it manually in / calls(appelle) - — favorite (favoris) tab … this sends a message with a blips to the job.

In esx_ambulancejob

Find in client/main.lua

function SendDistressSignal()
	local playerPed = PlayerPedId()
	local coords	= GetEntityCoords(playerPed)

	ESX.ShowNotification(_U('distress_sent'))
	TriggerServerEvent('esx_phone:send', 'ambulance', _U('distress_message'), false, {
		x = coords.x,
		y = coords.y,
		z = coords.z
	})
end

And replace with this:

function SendDistressSignal()
	local playerPed = PlayerPedId()
	PedPosition		= GetEntityCoords(playerPed)
	
	local PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z }

	ESX.ShowNotification(_U('distress_sent'))

    TriggerServerEvent('esx_addons_gcphone:startCall', 'ambulance', _U('distress_message'), PlayerCoords, {

		PlayerCoords = { x = PedPosition.x, y = PedPosition.y, z = PedPosition.z },
	})
end
5 Likes

Tanx very much!!! :blush:

2 Likes

Hello,
No problem for my FIX …

It’s so easy to copy/paste a reply @ BTNGaming :smiley:

2 Likes

thank you very much I have already incorporated the totoriel but I will still the notified :stuck_out_tongue:

You can also configure other things.

If you would use normal call without going through RTC (Ganon RTC is dead).

Edit "useWebRTCVocal": true, by "useWebRTCVocal": false,:

  "//": "useWebRTCVocal: false => Appels avec channels de GTA",
  "//": "useWebRTCVocal: true  => Appels avec WebRTC",
  "useWebRTCVocal": false,
  "RTCConfig": {
    "iceServers": [{
      "urls": ["turn:gannon.ovh"],
      "username": "jojo",
      "credential": "pass"
    }]
  },

In your config, it is already false, but good … :smiley:

Like that no need to use vdk_call (If I remember well)
o7

1 Like

yes everything is noted in the tutorial but thank you so much :stuck_out_tongue:

1 Like

I have to change something in esx_policejob and esx_taxijob for working notifications?

Now we just need to convert the tor chat into twitter >:D

4 Likes

Hello, I want some help, what I should do, if I want to my phone only works if I have an Item?

I would be grateful if you answer me.

1 Like

Why the notifications dont work for Police . Pls help!

1 Like

Pouvez-vous développer votre sujet, je n’ai pas tout compris dans l’article. :stuck_out_tongue:

1 Like