BA custom commands

is there any way to run a command like !example and then the webhook is requested? whenever i do it i get this

What do you mean? You can try using the recipes video cookie posted for this.

This means your missing an argument or it equals nil (nothing).

so basicly i run a command then it sends a request to a webhook but whenever i do something it tells me that it didnt work

i am aware but like there is one

Show me the code please.

local Plugin = function(...)
	local Data = {...}

	local remoteEvent = Data[1][1]
	local remoteFunction = Data[1][2]
	local returnPermissions = Data[1][3]
	local Commands = Data[1][4]
	local Prefix = Data[1][5]
	local actionPrefix = Data[1][6]
	local returnPlayers = Data[1][7]
	local cleanData = Data[1][8] 

	local pluginName = 'help'
	local pluginPrefix = actionPrefix
	local pluginLevel = 0
	local pluginUsage = "" 
	local pluginDescription = "Calls for an in-game admin."

	local function pluginFunction(Args) 
		local Player = Args[1]
		for i,v in pairs(game.Players:GetChildren()) do
			if returnPermissions(v) >= 1 then
				remoteEvent:FireClient(v,"Notif","Support Needed", Player.Name..' needs help.',{'PM',' Support Needed',Player.Name..'is in need of assistance.'})
				game:GetService("HttpService"):GetAsync("your rank gun hooks link here.")


	local descToReturn
	if pluginUsage ~= "" then
		descToReturn = pluginPrefix..pluginName..' '..pluginUsage..'\n'..pluginDescription
		descToReturn = pluginPrefix..pluginName..'\n'..pluginDescription

	return pluginName,pluginFunction,pluginLevel,pluginPrefix,{pluginName,pluginUsage,pluginDescription}

return Plugin

What is the exact issue.

i fixed it now i just needed a %20

1 Like

Okay, concatenation might be easier!

@Vamazoz, Where did you need a %20? Can you send the finished plugin?

i cant, since its a web hook. just put a web hook in the your rank gun hooks here.

But, Where do you put the 20%? Can you send it and remove your webhook?

the 20% were recognised as a space when sending the web hook, you shouldn’t have that problem.

Ok. DO I use rankgun advanced hooks?

just use the, just the hook builder

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.