description |
---|
Sometimes an issue may arise that warrants a factory reset of the ULX admin mod for Garry’s Mod. This step-by-step guide will walk you through the process.
|
ULX comes with a command that lets you reset all ULX and ULib configuration, including bans, groups, and accesses.
Note: This command omits some configs. See issue #132 on the issue tracker for details.
- Run
ulx resettodefaults
from the server console. - Confirm your intent by running
ulx resettodefaults FORCE
from the server console. - Change levels or restart the server to complete the process.
Alternatively, you can manually erase all relevant data from the server.
- DarkRP FAdmin users: remove all FAdmin groups and privileges by running
lua_run sql.Query "DROP TABLE FADMIN_GROUPS; DROP TABLE FADMIN_PRIVILEGES"
from the server console. - Remove all ban data by running
lua_run sql.Query "DROP TABLE ulib_bans"
from the server console. - Shut down your server.
- Delete file:
<garrysmod>/cfg/banned_user.cfg
(if it exists*) - Delete folders:
<garrysmod>/data/ulib
and<garrysmod>/data/ulx
- Restart your server.
*banned_user.cfg
was used to store permanent bans by ULib v2.63 and older.