GCPhone v3

Go into the setting on the phone and change the Coque or the phone case

Not working

Any clue what’s this error?

The phone opens as a white screen, the only thing i can see is the top bar where the battery is.

That’s what iv done and it works (using vrp_addons_gcphone from the v2 version)

any update for server running the newest esx version without essentialmode ?
gcphone is no creating phone number

alguna actualizacion para servidores con el nuevo esx que no usa essentialmode ?
gcphone no esta creando el nuemero de telefono

2 Likes

:wave: Hey guys, that’s the client.lua for ■■■■■■■■.

:arrow_right:client.lua (21.0 KB)

:hammer_and_wrench:created by:

[Sry, I’m new on this forum. :grimacing:]

1 Like
  1. https://prnt.sc/s63av9
    I choose to send a message to the police, a window appears where you need to write a message, but the text does not write.
  2. https://prnt.sc/s63h7r
    I send messages to the police and this appears in the console. How to fix these 3 errors?
  3. https://prnt.sc/s63kfz

:wave:Hey@steriko
I got the same problem. When I installed it, it works perfect, but now all new player doesn’t get a number.
:confused:

In a few days I will get the new version for the last ESX, also the error of the number is not due to the esx, it is due to some bad configuration

You have the problem in your database, yesterday I solved this problem on another server, and they were due to a wrong configuration on your server

Hmm, im using lastest extended version and gcphone isnt working on that becouse he need rework of server side? Does someone manage to do that?

Hello dude, thx for your release. Im trying to find out a way to change the whole phone positionning. Do you have any idea please ?He is actually in the bottom right of the screen and I’d like to have it in the middle right of the screen (vertical) thx for your time and help

you have to configure the phone_wrapper and the phone_screen. They are in the source code and are css styles

Fix for new ESX, just update es:playerLoaded with bellow

AddEventHandler('esx:playerLoaded',function(source)

    local sourcePlayer = tonumber(source)

    local xPlayer = ESX.GetPlayerFromId(source)

    local identifier = xPlayer.identifier

    getOrGeneratePhoneNumber(sourcePlayer, identifier, function (myPhoneNumber)

        TriggerClientEvent("gcPhone:myPhoneNumber", sourcePlayer, myPhoneNumber)

        TriggerClientEvent("gcPhone:contactList", sourcePlayer, getContacts(identifier))

        TriggerClientEvent("gcPhone:allMessage", sourcePlayer, getMessages(identifier))

    end)

end)




OH and you need bellow as well at the top of your code to support ESX:

ESX = nil

TriggerEvent('esx:getSharedObject', function(obj)
    ESX = obj
end)
2 Likes

Update fix all functions, just replace getplayerID

function getPlayerID(source)

    local xPlayer = ESX.GetPlayerFromId(source)

    local identifier = xPlayer.identifier

    return identifier

end

3 Likes

for the new version of ESX

What he Means is how can he change they Key that is used ti open the phone. and what is the default kay to open the phone?. i would also like to know :smiley:

i make it generate the phone number but now i getting a error when i log in and logout

i used this patched version for gcphone

i replace all foders an remove the __resource.lua files and replaced it for fxmanifest.lua

still need to test it out with other players

Key to open is F1 and you change it in client.lua line 14 :slight_smile:

Hey Manuel, thx for your job but also for your answer. So i need to change the phone_wrapper and phone_screen css only ? thx for your time dude.