Tutorial For GCPhone with call and job message...other

phone
esx_phone
gcphone
call

#83

When i go to message and thoose one i have message and write a new message it dont show it on the phone screen and when ill go back then my screen been white?? What wrong? and when i go back 2 times iam seeing my main screen.


#84

¨ didnt work


#85

Hi,

Do you use another phone script ? I do not understand your dysfunction … It seems that images do not load ? Do you have make changes on the phone?
Do you have any error when you look on server (F8) or consol ?
The gcphone works perfectly for other.

Go step by step …

  • Download gcphone here : https://github.com/N3MTV/gcphone/releases
    You need the last releases and NOT the sources files.
    image

  • When the download is terminated, extract the folder in your desktop
    image

  • Like this :
    image

  • Now upload the folders gcphone and esx_addons_gcphone in your ftp browsers.

  • Into your resources folder.

  • Go in your server.cfg, and add the start addons (this is an exemple, but you absolutely must start gcphone and esx_addons_gcphone before jobs addons :

# These are the core FiveM resources
start mapmanager
start chat
start spawnmanager
start sessionmanager
start fivem
start hardcap
start rconlog
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_.....
  • Clear cache of your server
    image

  • Start or restart your server


#86

Ill get these in console when i have sent a messages and ill go back then the screen turns white when iam in message app.

https://gyazo.com/f464e6a0950501d0a3339a1ab1128ed9


#87

Hello, why the cops and medics doesnt become any messages?


#88

Hi,
Check if the number of your police is equal to :

number     = 'police',

And for your ambulance :

number     = 'ambulance',

#89

I especially think that there is a problem of syntax, space in excess or badly closed the code, or ‘’ or}, {, …

if there is an error it is that the code that you put is not correct …

I do not do better than the tutorial, its running at 100% if you just do it.


#90

perhaps ],


{
      "display": "Agent Immobilier",
	  "backgroundColor": "green",
      "subMenu": [
        {
		  "title": "Envoyer un message",
          "eventName": "realestateagent"
        }
      ]
    }
  ],                 --end of end  code job , here waring !!!!!!!!!!!!!  


#91

where can i find this?


#93

Hi. First sorry for my bad english ^^.

I got a little Problem with my GCPhone. I Rebuilded my new Server and all works fine. But the Problem that i have is a ###-##### Number. Some players got this Problem until i restart the GCPhone resource. Does someone know a solution or can give me a Hint ? THX


#94

Phone is not showing when i open it


#95

Hello,
Probably a syntax problem if you have modified files. If you have any other ressources for phone, they must be deleted …


#96

Hi,
In your jobs addons (esx_ambulancejob, esx_policejob…)


#97

Like what kind resources like esx_phone3 or something like that


#98

Whats wrong? When i send a message it not shows up on the phone and when il go back once it turns white and when i hit back second time ill come back on main screen and when ill go back in messages it is still white.

https://gyazo.com/6bf01bef9ed204829d12585c18d9e4ad


#99

Hi,

  • Server ESX or VRP ?

    • Because gcphone is only for ESX.
  • Did you correctly import the SQL database ?

    • If so, are the messages that are sent visible in your database ?
  • Do you have errors via the server console or via the F8 console ?

  • Do you use another phone ?

    • If so, have you tried to disable it?
  • Where did you put the start gcphone ?

  • Did you start the gcphone before the jobs?

  • Have you made any changes ?

  • Have you clear the server cache ?

  • Did you follow the tutorial correctly?

Please bring as much information as you can :slight_smile:


#100

Hi,

Have you tried to disable it?

And look this post : Tutorial For GCPhone with call and job message...other


#101

Hi maybe someone can help me. I have the phone as item but i still get notifications. The message notifications were easy to turn of but where does it trigger the ringtone?


#102

Hi,

I do not really understand your request. My english is approximate :joy:

  • You have the phone in item (so far no problem).
  • You receive notifications? Yes … what do you want to do exactly? Do not receive any more notifications and calls? But for what purpose

The sound is in client.lua :

Citizen.CreateThread(function ()
    while true do
        local playerPed   = PlayerPedId()
        local coords      = GetEntityCoords(playerPed)
        local inRangeToActivePhone = false
        for i, _ in pairs(PhoneInCall) do
            local dist = GetDistanceBetweenCoords(
                PhoneInCall[i].coords.x, PhoneInCall[i].coords.y, PhoneInCall[i].coords.z,
                coords.x, coords.y, coords.z, 1)
            if (dist <= 5.0) then
                DrawMarker(1, PhoneInCall[i].coords.x, PhoneInCall[i].coords.y, PhoneInCall[i].coords.z,
                    0,0,0, 0,0,0, 0.1,0.1,0.1, 0,255,0,255, 0,0,0,0,0,0,0)
                inRangeToActivePhone = true
                if (dist <= 1.5) then
                    SetTextComponentFormat("STRING")
                    AddTextComponentString("~INPUT_PICKUP~ Décrocher")
                    DisplayHelpTextFromStringLabel(0, 0, 1, -1)
                    if IsControlJustPressed(1, KeyTakeCall) then
                        PhonePlayCall(true)
                        TakeAppel(PhoneInCall[i])
                        PhoneInCall = {}
                        StopSound(soundId)
                    end
                end
                break
            end
        end
        if inRangeToActivePhone == false then
            showFixePhoneHelper(coords)
        end
        if inRangeToActivePhone == true and currentPlaySound == false then
            PlaySound(soundId, "Remote_Ring", "Phone_SoundSet_Michael", 0, 0, 1)
            currentPlaySound = true
        elseif inRangeToActivePhone == false and currentPlaySound == true then
            currentPlaySound = false
            StopSound(soundId)
        end
        Citizen.Wait(0)
    end
end)

#103

Yeah well if i don’t have the phone i don’t want any notifications either. Same way as if i turn off the phone i don’t want notifications. Yeah i disabled that part of the code last night, still the ringtone came up. Maybe i have to take another look. Thanks anyway :slight_smile: