> For the complete documentation index, see [llms.txt](https://fm-shop.gitbook.io/fm-shop-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fm-shop.gitbook.io/fm-shop-docs/installation/load-order-and-conflicts.md).

# Load order and conflicts

How to order resources in server.cfg and avoid conflicts between maps.

Most problems after installing a map are caused by **conflicts** with another resource, not by the map itself.

## Load order in `server.cfg`

Resources start in the order they appear in `server.cfg`. Follow this rule:

1. Start **dependencies** first (any resource the map needs, if it has one).
2. Start the map resource **after** its dependencies.
3. Start scripts that use the interior (jobs, shops, robberies) **after** the map.

```
# dependencies first
ensure dependency-name

# then the map
ensure cfx-fm-aldente-interior

# then scripts that interact with it
ensure my-shop-script
```

{% hint style="info" %}
`ensure` starts a resource if it is stopped and restarts it if it is already running. It is the command used in our installation guide.
{% endhint %}

## Typical conflicts

| Symptom                                        | Likely cause                                                                       | What to try                                             |
| ---------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------- |
| The old interior still shows                   | Another map replaces the same building, or a resource keeps the vanilla IPL active | Disable the other map or IPL loader for that location   |
| Parts of the interior are missing or invisible | Two maps modify the same area, or a file was not copied                            | Check for overlapping maps, and re-copy the full folder |
| Invisible walls or no collisions               | Missing `.ybn` files                                                               | Re-extract the archive and copy every file              |
| Interior flickers or shows the wrong lighting  | Another resource changes the same time cycle or props                              | Test with only this map running                         |
| Objects appear twice                           | Two resources load the same entity sets                                            | Disable one of them                                     |

## How to find the conflict

1. Stop all other map resources, leaving only the FM Shop map running.
2. If it works, start the others **one by one** until the problem returns.
3. The last resource you started is the one in conflict.

{% hint style="warning" %}
Do not edit the streamed files to fix a conflict. Change your own resources instead, or contact support on [Discord](https://discord.gg/TZeRjWeFKQ).
{% endhint %}
