Neler yeni

Foruma hoş geldin, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

Türkiye'nin İlk ve tek FiveM forum adresi

Forum adresimize hoş geldin FiveMTürk olarak amacımız siz değerli kullanıcılarımıza en aktif fikir ve paylaşım platformu sunmak bir yana en güvenilir şekilde alışveriş yapabileceğiniz bir platform sunmaktır.
DF DF
DF DF
DF DF

Twitter&Sarı Sayfalar

artstars

Üye
Yasaklandı
FT Kullanıcı
Katılım
4 yıl 11 ay 10 gün
Mesajlar
191
Merhabalar Bazı Sunucularda Gördüm Oyun İçi Twitterı&Sarı Sayfaları Discorda Eklemişler Kim Mesaj Atarsa Discordta Gözüküyor Bunu Ben Nasıl Yapabilirim?
 
DF
Gcphone > server > yellow.lua dosyasına giriyorsun ve istediğin bir boşluğa şu kod bloğunu yapıştırıyorsun.

AddEventHandler('gcPhone:yellow_newPagess', function (pages)
--print(json.encode(pages))
local discord_webhook = ' '
if discord_webhook == '' then
return
end
local headers = {
['Content-Type'] = 'application/json'
}
local data = {
["username"] = first.name,
["embeds"] = {{
["thumbnail"] = {},
["color"] = 1942002,
["timestamp"] = os.date("!%Y-%m-%dT%H:%M:%SZ", tweet.time / 1000 )
}}
}
local isHttp = string.sub(pages.message, 0, 7) == 'http://' or string.sub(pages.message, 0, 8) == 'https://'
local ext = string.sub(pages.message, -4)
local isImg = ext == '.png' or ext == '.pjg' or ext == '.gif' or string.sub(pages.message, -5) == '.jpeg'
if (isHttp and isImg) and true then
data['embeds'][1]['image']}
else
data['embeds'][1]['description'] = pages.message
end
PerformHttpRequest(discord_webhook, function(err, text, headers) end, 'POST', json.encode(data), headers)
end)

olur diye düşünüyorum.
 
DF
twitter için ise direkt olarak bu gcphone > server > twitter.lua istediğin bir boşluğa



AddEventHandler('gcPhone:twitter_newTweets', function (tweet)
--print(json.encode(tweet))
local discord_webhook = ' '
if discord_webhook == '' then
return
end
local headers = {
['Content-Type'] = 'application/json'
}
local data = {
["username"] = tweet.author,
["embeds"] = {{
["thumbnail"] = {
["url"] = tweet.authorIcon
},
["color"] = 1942002,
["timestamp"] = os.date("!%Y-%m-%dT%H:%M:%SZ", tweet.time / 1000 )
}}
}
local isHttp = string.sub(tweet.message, 0, 7) == 'http://' or string.sub(tweet.message, 0, 8) == 'https://'
local ext = string.sub(tweet.message, -4)
local isImg = ext == '.png' or ext == '.pjg' or ext == '.gif' or string.sub(tweet.message, -5) == '.jpeg'
if (isHttp and isImg) and true then
data['embeds'][1]['image'] = { ['url'] = tweet.message }
else
data['embeds'][1]['description'] = tweet.message
end
PerformHttpRequest(discord_webhook, function(err, text, headers) end, 'POST', json.encode(data), headers)
end)
 
DF
Twitter tamam ama sarı sayfalara olmuyor
 
DF

Forumdan daha fazla yararlanmak için giriş yapın yada üye olun!

Forumdan daha fazla yararlanmak için giriş yapın veya kayıt olun!

Kayıt ol

Forumda bir hesap oluşturmak tamamen ücretsizdir.

Şimdi kayıt ol
Giriş yap

Eğer bir hesabınız var ise lütfen giriş yapın

Giriş yap

Bu konuyu görüntüleyen kullanıcılar

Tema düzenleyici

Tema özelletirmeleri

Granit arka planlar

Lütfen Javascript'i etkinleştirin!Javascript'i etkinleştirin!
// Adblock Kod Start // // Adblock Kod End//