<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ahmed+Lyy</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ahmed+Lyy"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Ahmed_Lyy"/>
	<updated>2026-05-10T12:07:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81840</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81840"/>
		<updated>2025-03-04T04:13:35Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''community''': https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=18961&lt;br /&gt;
&lt;br /&gt;
'''free host for bot''': https://render.com/&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.9.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
my account discord is ahmedly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
if you using render must use environment variables not config for token.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
Additional dependencies: Install discord.py, Flask, and requests using:&lt;br /&gt;
&lt;br /&gt;
pip install discord.py Flask requests configparser&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.ini.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
Ensure MTA is correctly configured in the script and that you have updated credentials such as username, password, host, and port to match your MTA server settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81833</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81833"/>
		<updated>2025-02-23T20:56:39Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''community''': https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=18961&lt;br /&gt;
&lt;br /&gt;
'''free host for bot''': https://render.com/&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.4.0&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
if you using render must use environment variables not config for token.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
Additional dependencies: Install discord.py, Flask, and requests using:&lt;br /&gt;
&lt;br /&gt;
pip install discord.py Flask requests configparser&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.ini.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
Ensure MTA is correctly configured in the script and that you have updated credentials such as username, password, host, and port to match your MTA server settings.&lt;br /&gt;
&lt;br /&gt;
my account discord is ahmedly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81832</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81832"/>
		<updated>2025-02-23T20:56:00Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''community''': https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=18961&lt;br /&gt;
&lt;br /&gt;
'''free host for bot''': https://render.com/&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.4.0&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
if you using render must use environment variables not config for token.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
Additional dependencies: Install discord.py, Flask, and requests using:&lt;br /&gt;
&lt;br /&gt;
pip install discord.py Flask requests&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.ini.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
Ensure MTA is correctly configured in the script and that you have updated credentials such as username, password, host, and port to match your MTA server settings.&lt;br /&gt;
&lt;br /&gt;
my account discord is ahmedly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81831</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81831"/>
		<updated>2025-02-23T20:54:49Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''community''': https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=18961&lt;br /&gt;
&lt;br /&gt;
'''free host for bot''': https://render.com/&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.4.0&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
if you using render must use environment variables not config for token.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discordia or discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
Additional dependencies: Install discord.py, Flask, and requests using:&lt;br /&gt;
&lt;br /&gt;
pip install discord.py Flask requests&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.ini.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
Ensure MTA is correctly configured in the script and that you have updated credentials such as username, password, host, and port to match your MTA server settings.&lt;br /&gt;
&lt;br /&gt;
my account discord is ahmedly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:DiscordBot.png&amp;diff=81829</id>
		<title>File:DiscordBot.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:DiscordBot.png&amp;diff=81829"/>
		<updated>2025-02-20T21:34:30Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81828</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81828"/>
		<updated>2025-02-20T21:21:22Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''community''': https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=18961&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.4.0&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discordia or discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
Additional dependencies: Install discord.py, Flask, and requests using:&lt;br /&gt;
&lt;br /&gt;
pip install discord.py Flask requests&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.ini.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
Ensure MTA is correctly configured in the script and that you have updated credentials such as username, password, host, and port to match your MTA server settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81826</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81826"/>
		<updated>2025-02-20T18:52:33Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''community''': https://community.multitheftauto.com/index.php?p=resources&amp;amp;s=details&amp;amp;id=18961&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.4.0&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discordia or discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
Additional dependencies: Install discord.py, Flask, and requests using:&lt;br /&gt;
&lt;br /&gt;
pip install discord.py Flask requests&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.lua.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
Ensure MTA is correctly configured in the script and that you have updated credentials such as username, password, host, and port to match your MTA server settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81825</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81825"/>
		<updated>2025-02-20T18:38:45Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.4.0&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discordia or discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
Additional dependencies: Install discord.py, Flask, and requests using:&lt;br /&gt;
&lt;br /&gt;
pip install discord.py Flask requests&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.lua.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
Ensure MTA is correctly configured in the script and that you have updated credentials such as username, password, host, and port to match your MTA server settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81824</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81824"/>
		<updated>2025-02-20T18:33:37Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.4.0&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discordia or discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
Additional dependencies: Install discord.py, Flask, and requests using:&lt;br /&gt;
&lt;br /&gt;
pip install discord.py Flask requests&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.lua.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
= Notes =&lt;br /&gt;
&lt;br /&gt;
Ensure MTA is correctly configured in the script and that you have updated credentials such as username, password, host, and port to match your MTA server settings.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81823</id>
		<title>Bot Discord</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Bot_Discord&amp;diff=81823"/>
		<updated>2025-02-20T18:30:13Z</updated>

		<summary type="html">&lt;p&gt;Ahmed Lyy: Created page with &amp;quot;Discord Bot for MTA:SA  This resource is designed to connect an MTA:SA server with a Discord server.  This page is always updated for the latest bot version!  '''Status''': Open Source &amp;amp; Work in Progress  '''Github Repository''': https://github.com/Ahmed-Ly/botdiscord  '''Current Version''': 1.4.0  = Features =  Send and receive messages between Discord and MTA:SA  Execute admin commands via Discord  Support for sending server n...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:DiscordBot.png|400px|thumb|right|Discord Bot for MTA:SA]]&lt;br /&gt;
&lt;br /&gt;
This resource is designed to connect an MTA:SA server with a Discord server.&lt;br /&gt;
&lt;br /&gt;
This page is always updated for the latest bot version!&lt;br /&gt;
&lt;br /&gt;
'''Status''': Open Source &amp;amp; Work in Progress&lt;br /&gt;
&lt;br /&gt;
'''Github Repository''': https://github.com/Ahmed-Ly/botdiscord&lt;br /&gt;
&lt;br /&gt;
'''Current Version''': 1.4.0&lt;br /&gt;
&lt;br /&gt;
= Features =&lt;br /&gt;
&lt;br /&gt;
Send and receive messages between Discord and MTA:SA&lt;br /&gt;
&lt;br /&gt;
Execute admin commands via Discord&lt;br /&gt;
&lt;br /&gt;
Support for sending server notifications to a Discord channel&lt;br /&gt;
&lt;br /&gt;
= Installation Guide =&lt;br /&gt;
&lt;br /&gt;
Download the files from the link above.&lt;br /&gt;
&lt;br /&gt;
Place the discord-bot folder inside the resources folder in MTA:SA.&lt;br /&gt;
&lt;br /&gt;
Update mtaserver.conf to add the resource to the list.&lt;br /&gt;
&lt;br /&gt;
Add the bot token details in config.lua.&lt;br /&gt;
&lt;br /&gt;
Start the server and use the command /start yourresourcename.&lt;br /&gt;
&lt;br /&gt;
= Usage =&lt;br /&gt;
&lt;br /&gt;
'''1. Sending Messages from Discord to MTA'''&lt;br /&gt;
&lt;br /&gt;
When a message is sent in the designated Discord channel, it will automatically appear in-game.&lt;br /&gt;
&lt;br /&gt;
'''2. Executing Admin Commands from Discord'''&lt;br /&gt;
&lt;br /&gt;
Admins in Discord can use the following command:&lt;br /&gt;
&lt;br /&gt;
!kick playerName reason&lt;br /&gt;
&lt;br /&gt;
and the player will be kicked from the server.&lt;br /&gt;
&lt;br /&gt;
'''3. Sending Notifications from MTA to Discord'''&lt;br /&gt;
&lt;br /&gt;
When a new player joins, a notification will be sent to the designated Discord channel:&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerJoin&amp;quot;, root, function()&lt;br /&gt;
local playerName = getPlayerName(source)&lt;br /&gt;
sendDiscordMessage(&amp;quot;&amp;quot; .. playerName .. &amp;quot; has joined the server!&amp;quot;)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Requirements =&lt;br /&gt;
&lt;br /&gt;
MTA:SA server running version 1.6.0 or later.&lt;br /&gt;
&lt;br /&gt;
A Discord bot activated with a token.&lt;br /&gt;
&lt;br /&gt;
discordia or discord.py library on the server.&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
Ensure the bot token is correct in config.lua.&lt;br /&gt;
&lt;br /&gt;
Verify that the bot has permission to send messages in the required channel.&lt;br /&gt;
&lt;br /&gt;
Use /debugscript 3 to monitor any errors within MTA.&lt;br /&gt;
&lt;br /&gt;
[[Category:Resources]]&lt;/div&gt;</summary>
		<author><name>Ahmed Lyy</name></author>
	</entry>
</feed>