Fx Commands /commands /rules

fxserver
commands

#1

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.

#2

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


#3

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)


#4

Sorry i don’t understand what you are saying


#5

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



#6

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


#7

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"})