Hi developers,
I’m trying to create a command with plugins on Basic Admin Essentials. When a player uses the :topmessage [message] command, it will show a hint at the top of the screen and it will stay there, rather than disappearing.
However, I’m not advanced at scripting so I’m not very sure how to keep the message there and stop it from disappearing on its own. I don’t think its necessary to include screenshots, as you can visualize it. The message will disappear; I want it to stay. I’m not very familiar with BAE plugins, so I was not able to try any other solutions.
Here’s my code so far. If you see any problems or if I need to add anything to achieve my goal, please let me know!
local Plugin = function(...)
local Data = {...}
local remoteEvent = Data[1][1]
local pluginName = "topmessage"
local pluginPrefix = ":"
local pluginLevel = 1
local pluginDescription = "Fixes a specific message to the top of the screen."
local pluginUsage = "<Text>"
local pluginFunction = function(Args)
local Player = Args[3]
remoteEvent:FireAllClients('Hint', 'Message', Args[3])
end
pluginDescription = " " .. pluginDescription
return pluginName, pluginFunction, pluginLevel, pluginPrefix, {pluginName, pluginUsage, pluginDescription}
end
return Plugin
Thank you for your help!