[Release] Advanced discord command

Today I present to you a new type of discord command. You have the normal discord command that puts it in the chat, but this one is a little different…

This is a picture of what it will do:
image

Command
The command for this script is normal /discord

What's in the download

server.lua
__resource.lua

download

Discord-Command-master.zip (1.1 KB)
Or via GitHub

V.2 Has been updated, this sends it through the client. This should work for people now!

*MUST READ
To make this work you must changeimage For the script to work!!!

Requirements
None this is a standalone script.

2 Likes

Message flag is unnecessary

No offense but this isn’t anything revolutionary…

Also why are you running this on the server and not passing to the client?

This.

Please test your code before you release it. This won’t work.

This works for me on my server? I’ll look into it.

1 Like

If you really want to make it ‘advanced’, have it open a HTML box with the invite link in there, then the person can just press “Join Server”

1 Like

That sound like a good idea, thanks man. I’ll look into that :slight_smile:

1 Like

So in the title it says Advanced discord command but what is the command? /discord ?

Yes, but it doesnt put the discord link in the chat, it does this image

1 Like

So it is a command and you type /discord

Yes, then it presents the user with that picture

1 Like

Okay thanks for the info i also think the ida from Sam_Behner is good

1 Like

Yes, infact i’m working on that right now so that should be out soon. Bare with :slight_smile:

4 Likes

Exited for this!! :smiley:

2 Likes

Here is an idea make a NUI Display the discord for a certain amount of time on screen then fade away, that way they can see the discord and hey if you wanted added a button they can click to copy the discord text. Now thats advanced and helpful, I understand its easier to make it a notification but Honestly its annoying when people have to keep doing /discord to see the url over and over again to type it in so they can go there. a quick button to allow them to have the text already clapboarded to paste it in a browser would be better. Just a suggestion.

2 Likes

Not Working…

Reply with the server.lua so i can take a look at it.

------------ Made By caprancTV ------------

message = true
DisMessage = "Enter your discord here"
local DiscordMSG = "discord"

function ShowNotification(text)
	SetNotificationTextEntry("STRING")
	AddTextComponentString(text)
	DrawNotification(false, false)
end

RegisterCommand(DiscordMSG, function(p, g)
	if message then
	 ShowNotification(DisMessage)
	end
end)


Direct download provides an outdated version, please update.

1 Like

Ok, thanks i’ve fixed that now!

That looks fine,

------------ Made By caprancTV ------------

message = true
DisMessage = “Enter your discord here” – Change this to your discord invite, [REMEMBER IT MUST BE A PERMINENT INVITE]
local DiscordMSG = “discord”

function ShowNotification(text)
SetNotificationTextEntry(“STRING”)
AddTextComponentString(text)
DrawNotification(false, false)
end

RegisterCommand(DiscordMSG, function(p, g)
if message then
ShowNotification(DisMessage)
end
end)

print ("\n DiscordCMD | By caprancTV\n")

try this