addCommandHandler("discord", function()
local link = "https://discord.gg/SFBUHknpxy"
if setClipboard(link) then
outputChatBox("Copied to clipboard: #FFFFFF"..link, 187,187,187, true)
end
end, false)
you can change the output message and color codes however you need. this will copy the discord link to your clipboard when you type /discord and send a confirmation message in your chat
If you join that discord and send me a DM, I can teach you some more about scripting. always nice to see new people getting into coding for MTA. good luck