MammadEzi Posted March 25, 2021 Share Posted March 25, 2021 Hi guys, this is my first topic and I hope to get my answer soon :D The question I had was, can the cmd be entered into MTA:SA Server through Discord Bot? for example: Inside the discord: !kill <playerid> Then inside the MTA:SA: function kill(player) { setElementHealth(player, 0) } I just wanted to know if this is done or not. In that case, I'm glad you taught me a solution :D Link to comment
FlyingFork Posted May 25, 2021 Share Posted May 25, 2021 (edited) Hi, if you are making your bot in Node.JS there is a package available to help you do this, https://www.npmjs.com/package/mtasa-sdk Function has to be exported and HTTP has to be enabled! Edited May 25, 2021 by FlyingFork Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now