Gang

Location

Occupation

Interests

I know about socket module that can manage with it. Also i can output mta messages on discord server using web hook, but can i do it in opposite direction? I mean can i output discord messages on mta server without additional modules?

Hi!
Following the community discussion in our forums, we have created an official Discord server quite a while ago, as an alternative (and maybe a full replacement in the future) to our current IRC channels. We kept it in under the radar while we were fine tuning things, but we believe we can now present it to you guys. All MTA players and fans are welcome to join our Discord server (though please behave while you are in there ).
You can join it by using the link below: https://discord.gg/RygaCSD or https://mtasa.com/discord
What is Discord?
Discord is a hybrid of IRC, an Instant Messenger and a Voice Chat software. It incorporates the most important features of these elements into a handy and multiplatform app which you can run on your desktops, smartphones or tablets.
Why is it cool?
Compared to IRC, it offers a built-in chat history buffer, so even if you are offline, you can still catch up with what happened in the channels then. IRC also offers that, but only through an IRC Bouncer that you either need to pay for, or have someone host it for you.
It also has a modern look and features such as URL embedding (regular websites, but also pictures and videos), handy syntax colouring for pasted code snippets, emojis (also custom ones), chat messages reactions, Steam integration and more.
What can I find while I am there?
We currently have some channels created, including:
#general - for general MTA and offtopic chats
#scripting - for Lua scripting-related queries
#support - for any problems related to MTA:SA client or server
#announcements - for all important messages from us
as well as some others. We are still thinking of how to put our Discord server into its full potential, so we may add more channels soon.
Can I have Discord app installed and/or running on several of my devices concurrently? Can I use more than one server?
Sure, absolutely. It will sync the messages automatically. And yes, you can add more servers than just our one.
How do I join it?
Hey, we have mentioned that already. Just click the link below and follow the instructions: https://discord.gg/RygaCSD or https://mtasa.com/discord
I have a suggestion about the Discord...
Okay, let us know. As usual, we are open for suggestions. Just post in this topic or hit us up directly on Discord.
Hope to see you there!
-- MTA Team

I brought you bakaGaijin and Ash
Now I bring Discord integration with MTA scripts.
MTA already has this for IRC
Shoutout to the people who made the Sockets module, you're awesome.
Features:
-Scripts can echo messages to any Discord text channel of their choosing.
-Any Discord channel can be set up to echo all messages to an ingame script. (Including the name of the person who said it, and his role)
-One MTA server can send/receive to multiple Discord guilds.
Example use:
To show how this is useful, I made a small program to echo all global chat to a "global" Discord channel, and all team chats to individual "team" Discord channels.
These Discord channels ofc echo messages back when someone posts.
As proof of concept for commands, if a Discord user types "!ban name" then his role is checked, and if it includes Founder, the chat outputs "name was banned!"
This is the client side script I used for this example:
local SECRET_KEY = "15-A-53CR3T-K3Y" --The script works even if your server IP changes. You are mapped to a unique key.
local function onopen(self)
self:send(SECRET_KEY) --Your MTA server logs in
addEventHandler("onResourceStop", resourceRoot, function()
self:close() --Break off from Discord
end)
addEventHandler("onPlayerChat", getRootElement(), function(message, type) --Example hook to capture player chats
local name = getPlayerName(source)
local channel = "global" --Send to global channel if global chat
if type==2 then channel = getTeamName(getPlayerTeam(source)) end --Or team channel if teamchat
--Format to send messages is ("discord", channelName, message)
self:send("discord", channel, name..": "..message)
end)
end
function onmessage(self, data)
local channelName, name, role, message = data[3], data[4], data[5], data[6]
local orginal_message = message --The message we got from discord
message = "("..role..") "..name..": "..message --Make it pretty
if channelName=="global" then --Output to global chat or team chat
outputChatBox("(DISCORD) "..message)
else
local team = getTeamFromName(channelName)
local members = getPlayersInTeam(team) or {}
local r, g, b = getTeamColor(team) --Color the output for lulz
for _, player in ipairs(members) do
outputChatBox( "(DISCORD) (TEAM) "..message, player, r, g, b)
end
end
local commandExample = string.match(orginal_message, "^!ban (.+)") --If message started with !ban...
if role=="Founders" and commandExample then -- ...and the person who said it had the right Role
outputChatBox(commandExample.." was banned!", getRootElement(), 255, 0, 0)
end
end
local function onclose()
outputChatBox("The Discord link was closed")
end
local discord = Discord.new(onopen, onmessage, onclose)
That's 41 lines of code, now let's see it in effect.
I would love to hear what you think about it.

OK so after many requests from people asking me to install discord bots to their servers I have decided to make the simplest tutorial on setting up a bot for your servers.
[NOTE]: THIS IS A VPS TUTORIAL. IF YOUR SERVER ISN'T RUNNING ON A VPS THIS WILL NOT WORK FOR YOU UNLESS YOU UNDERSTAND HOW NODE.JS WORKS.
Part 1: Bot creation
Part 2: Files Configuration
Part 3: SSH commands
That should be all now go have fun annoying players in your server.
Some feedback would be appreciated
Good luck

Hello guys
My name is Gat and im new here and i want a help.
I found a mta bot for discord script that echo chat between mta server and a discord channel.
URL: https://github.com/Necktrox/mta-discord-bot
The problem is I don't know how to use it 😂

Hi!
Following the community discussion in MTA forums, we have created an official Discord server quite a while ago, as All MTA PUBG players and fans are welcome to join our Discord server
You can join it by using the link below:
https://discord.gg/F33E9nz
What is Discord?
Discord is a hybrid of IRC, an Instant Messenger and a Voice Chat software. It incorporates the most important features of these elements into a handy and multiplatform app which you can run on your desktops, smartphones or tablets.
What can I find while I am there?
We currently have some channels created, including:
#general - for general PUBG and offtopic chats
#squad-trio-duo - for voice channels.
#support - for any problems related to MTA:SA PUBG client or server
#announcements - for all important messages from us
as well as some others. We are still thinking of how to put our Discord server into its full potential, so we may add more channels soon.
How do I join it?
Hey, we have mentioned that already. Just click the link below and follow the instructions:
https://discord.gg/F33E9nz
(credits: MTA official discord )

Hi! Me and my friend have made a MTA Discord server. We are in the early development and we have just made it. We hope this will become another platform for MTA players to communicate and for development of MTA. Since we have just made the server we aren't many and we hope that you don't leave the server instanly. It will take some time to become many. We also need moderator so we are working on a form application. If the MTA development team sees this and want to join in please contact me.
Discord Invite: https://discord.gg/N6TAU77
Hope you join!

Hi! Me and my friend have made a MTA Discord server. We are in the early development and we have just made it. We hope this will become another platform for MTA players to communicate and for development of MTA. Since we have just made the server we aren't many and we hope that you don't leave the server instanly. It will take some time to become many. We also need moderator so we are working on a form application. If the MTA development team sees this and want to join in please contact me.
Discord Invite: https://discord.gg/N6TAU77
Hope you join!W

Hi! Me and my friend have made a MTA Discord server. We are in the early development and we have just made it. We hope this will become another platform for MTA players to communicate and for development of MTA. Since we have just made the server we aren't many and we hope that you don't leave the server instanly. It will take some time to become many. We also need moderator so we are working on a form application. If the MTA development team sees this and want to join in please contact me.
Discord Invite: https://discord.gg/N6TAU77
Hope you join!

Hi! Me and my friend have made a MTA Discord server. We are in the early development and we have just made it. We hope this will become another platform for MTA players to communicate and for development of MTA. Since we have just made the server we aren't many and we hope that you don't leave the server instanly. It will take some time to become many. We also need moderator so we are working on a form application. If the MTA development team sees this and want to join in please contact me.
Discord Invite: https://discord.gg/N6TAU77
Hope you join!

I was browsing around and noticed that MTA doesn't have its own server on Discord. Discord is little app that I've been using for couple of months now, for communication purpose with people from my gaming community. Looking at all options it has, it it something between IRC and TS3/Skype, only it's a lot better then IRC and lot less CPU consuming then Skype. A lot more organized then all 3: Skype, TS3 and IRC and it even supports chatting from browser, for those who don't want to download application. Application is supported on almost all platforms it does support creating your own servers and channels in those servers without paying anything to any host. You can read more about it here: https://discordapp.com/
I'd like to see official MTA community there and I can help with creating/managing it if needed.