Fx Commands /commands /rules

Information:

  • The script allows you to do /help /commands and more if you add them. If you are confused please feel free to ask me.

Requirement:

  • This script does not require anything so you can use this without essential-mode.

Installation:

  1. Download Commands
  2. Unzip Commands and put it in the resources folder.
  3. Add Commands to the Server.cfg file.
  4. clear cache and restart server.
3 Likes

Only problem with this, is when you do try to do /help with FxServer you get Access is denied for command help.

What am I doing wrong. No matter what I add to the script it only outputs in game the default.server.lua (3.5 KB)

Sorry i don’t understand what you are saying

Look the picture above is what happens when I do /commands. It doesnt match the script.


did you clear your cache folder in fxserver before starting the server?

If somebody uses ES and wants to see the /help hint when typing, replace this to server.lua:

TriggerEvent('es:addCommand', 'help', function(source, args, user)
	      TriggerClientEvent('showHelp', source, {})
end, {help = "Show Help"})
	
TriggerEvent('es:addCommand', 'commands', function(source, args, user)
	      TriggerClientEvent('showCommands', source, {})
end, {help = "Show Commands"})

TriggerEvent('es:addCommand', 'rules', function(source, args, user)
	      TriggerClientEvent('showRules', source, {})
end, {help = "Show Server Rules"})

TriggerEvent('es:addCommand', 'info', function(source, args, user)
	      TriggerClientEvent('showInfo', source, {})
end, {help = "Show SVRP Info"})

How to convert it in? Do you just move to your script folder inside resources? Or do you manually open coder to write the scripts in