π±Social Media
Y App
yseries:server:y:new-tweet
-- tweetData: {
-- id = number, -- Tweet ID (insert ID from database)
-- username = string, -- Username of the tweet author
-- content = string, -- Tweet content/text
-- attachments = table|nil, -- Attachments array (can be nil)
-- replyTo = number|nil -- ID of tweet being replied to (can be nil for new tweets)
-- }
-- playerIdentifier: string|nil -- Player identifier (can be nil)RegisterNetEvent('yseries:server:y:new-tweet', function(tweetData, playerIdentifier)
print("New tweet posted!")
print("Tweet ID:", tweetData.id)
print("Username:", tweetData.username)
print("Content:", tweetData.content)
-- Example: Log tweet to external system
-- YourLoggingSystem:LogTweet(tweetData, playerIdentifier)
-- Example: Trigger custom logic
-- if string.find(tweetData.content, "keyword") then
-- -- Do something
-- end
end)Instashots
yseries:server:instashots:on-new-post
News
yseries:server:news:new-article
YBuy (Marketplace)
yseries:server:ybuy:on-new-ad
PromoHub
yseries:server:promoHub:on-new-ad
Last updated