> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaworks.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

Most common issues and how to solve them. Before scrolling through this guide there are a few things to ALWAYS check before.

* Make sure you installed all the dependencies and started them before mega\_doctorjob. You can find the list in the Tebex Store or in the Discord channel dedicated to the script.

### Cannot open the Medical UI

* If you restarted the game while online:
  * If you're on a dev environment you can use /dload, otherwise do a full restart instead.
* If you get an error in console like `attempt to index a nil value`:
  * The player you're inspecting doesn't have the data loaded. It could be because you have restarted the script while online.
  * Make sure to have all the configured hospitals in the database too.

### Cannot use `/inspect` command

* Ensure `Config.inspectCommand` is set to the command you are typing.
* Make sure no other resource is registering the same command name.
* If you're trying to self-tend through Inspect, ensure you actually have an allowed healing item configured in [Items.lua](/scripts/doctorjob/configuration/items) (and that it isn't job-restricted).

### For RSG Users

RSG-Core has an on/off duty system.

* You can ask for an edited file on my discord that ignores the on/off duty for job checking.
* You can set in the RSG Config the on-duty state by default when a player joins.

### Other

* Make sure to select the right adapter in the config.
