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
{
"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"
}
]
}