Popular Post MrZsemle Posted December 30, 2018 Popular Post Posted December 30, 2018 (edited) Send message to Discord from MTA:SA STEP I. Make a new webhook on your Discord server STEP II. Change the variable to your webhook URL. STEP III. Start the resource, and test it with the /dcmessage <string> command, or use it with another script using the following export: exports.webhook:sendDiscordMessage("string") Download the script here. Edited January 5, 2021 by MrZsemle Formatting 5 2
5150 Posted January 28, 2019 Posted January 28, 2019 @MrZsemle how come it only allows one word per message? Paid Roleplay Mapper/Server Management - Message on forums or Discord for info Fluent with Owlgaming Code. Discord message for paid full set-ups and help My Discord: 5150#5150 (or .5150) Monky Gaming Roleplay/Adventure Discord (English players and servers interested in collaborating or partnering message me) https://discord.gg/SFBUHknpxy
Mr.Loki Posted January 28, 2019 Posted January 28, 2019 You need to change "param" into a table to catch all other subsequent params by using "..." then using table.concat to join them. -- Test the function function test(player, command, ...) local msg = table.concat({...}," ") sendDiscordMessage(msg) end addCommandHandler("dcmessage", test) 3 [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
MrZsemle Posted January 28, 2019 Author Posted January 28, 2019 7 hours ago, Mr.Loki said: You need to change "param" into a table to catch all other subsequent params by using "..." then using table.concat to join them. -- Test the function function test(player, command, ...) local msg = table.concat({...}," ") sendDiscordMessage(msg) end addCommandHandler("dcmessage", test) Thanks Loki, i'm update the resource. 1
FernandoMTA Posted May 23, 2020 Posted May 23, 2020 Thanks, works perfectly 1 Nando's Resources https://forum.multitheftauto.com/topic/139644-rel-nandos-resources/
OKD Gaming Posted June 4, 2020 Posted June 4, 2020 (edited) am i doing something wrong? Edited June 4, 2020 by OKD Gaming
Master_MTA Posted July 2, 2020 Posted July 2, 2020 sockets is better Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001 every thing is gonna be alright every thing is gonna be okay it's gonna be a good good life that's what my therapist say
MrZsemle Posted August 7, 2020 Author Posted August 7, 2020 (edited) On 04/06/2020 at 08:44, OKD Gaming said: am i doing something wrong? What MTA Server version do you using? In the future - if someone needs help, or found a bug, wants to give an advice - please consider using my GitHub Issues, or DM me. Edited August 7, 2020 by MrZsemle
yZion Posted August 27, 2020 Posted August 27, 2020 Hello MrZsemle I was wondering if there is any way to create messages in a way that the discord will not embed because I tried to do it here and it didn't work.
MedAliTounsi Posted September 21, 2020 Posted September 21, 2020 how to get mta logs in discord please
Mr.Loki Posted September 23, 2020 Posted September 23, 2020 On 21/09/2020 at 12:55, MedAliTounsi said: how to get mta logs in discord please onDebugMessage but this is a bad idea if you have lots of errors/warnings [REL]Cinema Experience Beta 2.0 [TUT]Object offsets with OOP. [TUT] Adding a Discord bot to your server. Discord: Loki#7355
NetroX Posted August 11, 2023 Posted August 11, 2023 I only get an emtpy responseData message. Can someone helo? https://imgur.com/a/Kk70PUI
Recommended Posts