Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@preilakos
Last active October 31, 2019 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save preilakos/9cf9b63bdc47e1468cdcd045f6e39ca5 to your computer and use it in GitHub Desktop.
Save preilakos/9cf9b63bdc47e1468cdcd045f6e39ca5 to your computer and use it in GitHub Desktop.
messageType: an int value representing the message type:
0: normal message
1: action message (/me)
2: team message
function messageLogDiscord(message, messagetype)
sendDiscordMessage(message)
end
addEventHandler("onPlayerChat", getRootElement(), messageLogDiscord)
function commandLogDiscord(command)
sendDiscordMessage(command)
end
addEventHandler("onPlayerCommand", root, commandLogDiscord)
@PixelAisar
Copy link

Can you give us the source code?

@preilakos
Copy link
Author

Can you give us the source code?

https://github.com/preilakos/mtasa-dcwebhook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment