So im using [Civ][ESX] Font Awesome Chat [v1.3][Updated 1/8/2019] for my chat and I want to add the gcphone twitter notifications to the chat which i did but now there are 2 notifications.
This is what I did:
in gcphone i replaced RegisterServerEvent('gcPhone:twitter_postTweets')
with
RegisterServerEvent('gcPhone:twitter_postTweets')
AddEventHandler('gcPhone:twitter_postTweets', function(username, password, message)
local sourcePlayer = tonumber(source)
local srcIdentifier = getPlayerID(source)
TwitterPostTweet(username, password, message, sourcePlayer, srcIdentifier)
TriggerClientEvent('chat:addMessage', -1, {
template = '<div style="padding: 0.5vw; margin: 0.5vw; background-color: rgba(28, 160, 242, 0.6); border-radius: 3px;"><i class="fab fa-twitter"></i> @{0}:<br> {1}</div>',
args = { username, message }
})
end)
If someone could help me I would really appreciate it