If you want to use it to post on twitter, what should Gcphone do?
I tried to post a picture like this.
QBCORE (framework) stupid more words needed to make a post so here’s more words.
You can try this
<img src="IMG-HERE.jpg">
This is how you can get the players first name and last name
local Player = QBCore.Functions.GetPlayer(source)
local FirstName = Player.PlayerData.charinfo.firstname
local FirstName = Player.PlayerData.charinfo.lastname
Thanks boss!
Try change a , b
to tweet["message"]
Shows text but doesn’t show pictures.
Change a , b
to a .. b
like this?
TriggerClientEvent(‘chat:addMessage’, -1 , {
templateId = ‘ccChat’,
multiline = false,
args = {
‘#11ffef’,
‘fa-brands fa-twitter’,
tweet[‘author’],
os.date(),
tweet[“message”]
}
})
Try this
TriggerClientEvent('chat:addMessage', -1 , {
templateId = 'ccChat',
multiline = false,
args = {
'#11ffef',
'fa-brands fa-twitter'
tweet['author'],
os.date(),
a .. b
}
})
Try this
TriggerClientEvent('chat:addMessage', -1 , {
templateId = 'ccChat',
multiline = false,
args = {
'#11ffef',
‘fa-brands fa-twitter’,
tweet['author'],
os.date(),
tweet["message"] .. '<img src="' .. tweet["image"] .. '">'
}
})
I’m not really 100% sure on GCphone but just try some different things
TriggerClientEvent('chat:addMessage', -1 , {
templateId = 'ccChat',
multiline = false,
args = {
'#11ffef',
‘fa-brands fa-twitter’,
tweet['author'],
os.date(),
tweet["message"] .. '<img src="' .. tweet["image"] .. '">'
}
})
You where using the wrong quotes
Ever look into fixing this? downloaded the updated version still having same problems
There is no issue you have to read the docs to create the custom messages
What about for esx?