General > Developers Corner

Commands from addon not loading on server

(1/2) > >>

Boxama:
So, I've made a pretty little addon for my community, which includes a couple of useful commands for the gamemode Murder. However, on the server, the commands won't show on the XGUI, neither will it autocomplete in the console, yet the command works perfectly. I'm sure I've done everything correctly.

* The path for the file is addons/ULX_Murder/lua/ulx/modules/sh/murder.lua
* I practically copy/pasted one of your commands to make a template
* The command shows up perfectly in singleplayer
* I have tried placing it in autorun then lua_openscript autorun/murder.lua. The same thing happens
* The addon has an addon.txt
* I have tried restarting the server several times
* The permissions appear under "_Uncategorized Cmds"
* After connecting to the server I see the message in console confirming that it has been loaded: "[ULX] Loading SHARED module: murder.lua"
You can check my code at https://github.com/boxama/addons/tree/master/addons/ULX_Murder
I would appreciate any help.

Cobalt:
You have to change 'CATEGORY_NAME' to the name of the section you want it to go in.

Boxama:
Already set. It works perfectly in singleplayer, but not on the server.

Eccid:
Have you done a full restart since adding it? A map change won't always work.

Boxama:
Yep. Several.
I've stated that I tried using autorun. Both work, but don't show in the menu, or at least the category isn't set.

Navigation

[0] Message Index

[#] Next page

Go to full version