[Q&A] GCPhone Questions? Ask them here, Will update main post frequently with updates

I tried this and it worked for me: in server.lua, add this at the beginning

local ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) 
    ESX = obj 
end)

Replace

function getPlayerID(source)
    local identifiers = GetPlayerIdentifiers(source)
    local player = getIdentifiant(identifiers)
    return player
end

by

function getPlayerID(source)
    local xplayer = ESX.GetPlayerFromId(source)
    local player = xplayer.identifier
    return player
end

Then replace

function getSourceFromIdentifier(identifier, cb)
    TriggerEvent("esx:getPlayers", function(users)
        for k , user in pairs(users) do
            if (user.getIdentifier ~= nil and user.getIdentifier() == identifier) or (user.identifier == identifier) then
                cb(k)
                return
            end
        end
    end)
    cb(nil)
end

by

function getSourceFromIdentifier(identifier, cb)
	local users = ESX.GetPlayers()
    for k , user in pairs(users) do
		local xplayer = ESX.GetPlayerFromId(user)
        if (xplayer.getIdentifier ~= nil and xplayer.getIdentifier() == identifier) or (xplayer.identifier == identifier) then
            cb(k)
            return
        end
    end
    --cb(nil)
end

and if the phone numbers aren’t given replace:

es:playerLoaded

by

esx:playerLoaded