> For the complete documentation index, see [llms.txt](https://docs.nextlevelplugins.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nextlevelplugins.com/plugins/server-manager/how-tos/merge-with-project.md).

# Merge With Project

#### Parenting GameMode <a href="#parenting-gamemode" id="parenting-gamemode"></a>

You must open your game mode, go to Class Settings, click Parent Class, and search for NLPManagerGameMode. After you have parented, you must copy some code into your own. `NLPManager Content > Manager > Common > Game > GameGameMode` Then, back in your game mode, paste the code you found in the GameGameMode. Then, on Event Begin Play, right-click and click "Add call to the parent function." You will also need to do the same if you have any of these events in your game mode: **OnPreLogin, BeginPlay, OnPostLogin, and OnLogout.**

<div align="left"><figure><img src="/files/Z1VHrPSX5WxtdRrYgJ71" alt="" width="339"><figcaption></figcaption></figure></div>

#### Adding GameMode Events <a href="#adding-gamemode-events" id="adding-gamemode-events"></a>

* OnBeforeServerStart (This is when the server is starting, and you want to load all your data before users actually join.)
* OnServerStarted (This is when the server has been posted and is ready for users.)
* OnServerError (This is when any errors occur)
* OnMatchmakingPlayerJoined (When a player joins, you can also get their custom matchmaking data)

<div align="center" data-full-width="false"><figure><img src="/files/UOtgUxGqIhE6UHu3jbS4" alt="" width="478"><figcaption></figcaption></figure> <figure><img src="/files/E1lgqyVQyZnaCpZh3323" alt="" width="557"><figcaption></figcaption></figure> <figure><img src="/files/GxzIxq5L1i9TBGsUnZcx" alt="" width="190"><figcaption></figcaption></figure> <figure><img src="/files/1A47B1f8pQcXYde1Is0M" alt="" width="446"><figcaption></figcaption></figure></div>
