Admin Panel

Troubleshooting

Answers to the most common setup questions.

View in store

The console says lg_admin is not starting

Start ox_lib and oxmysql before lg_admin, and keep the folder name lg_admin or lg_adminmenu. The message repeats every 2 minutes until it is fixed and the resource restarted.

F10 does nothing

You are not staff yet. Put your identifier in ServerConfig.Owners and restart. In the console, lg_admin prints your access when you join.

Discord roles do not give access

  • Turn on Server Members Intent on the bot page and make sure the bot is in your Discord.
  • Check ServerConfig.DiscordGuildId.
  • Link the Discord role in Staff & roles > Roles > Edit. Roles are re-checked at most every Config.Discord.RoleRecheckSeconds.

lg_admin stopped and says a table is wrong

Another resource (often an old admin menu) uses a table with the same name but another layout. lg_admin never changes it - rename or remove that table, then restart.

A new permission does not show for a role

Permissions added in an update are not given to existing roles automatically. Open the role in the editor - new permissions are marked - and tick them.

The website does not open

  • Without a domain: open Config.Web.Port (TCP) in the firewall.
  • With a domain: the DNS record must point to the server and ports 80 / 443 must be open (or follow the FallbackPort steps).
  • The Discord redirect must match exactly (http / https, port, /auth/callback).

Slash commands do not appear

Set Config.Bot.Enabled = true, restart, wait a minute. If they still do not show, invite the bot again with the applications.commands scope.

The monitor shows a black screen

Some networks block direct connections. Add a TURN server in Config.Monitor.IceServers.

A chat command is used by another resource

Rename it or set it to false in Config.Commands.

An item, vehicle or house from my script does not show

Check the detected scripts in the server console on start. Force the right one in Config.Bridge, or add it in the bridge file - see Supported scripts.

Restart only stops the server

The restart closes the server and txAdmin starts it again. Without txAdmin, start the server again from your host (or let your host restart it automatically).

Last updated