> 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

You may need to go into View Options and make sure "Show Plugin Content, and Show Engine Content is checked"

#### 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="https://3554096695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FClasSjSYpFMUFyy23ioF%2Fuploads%2FZOWFjd2dCG5GFxiaJWOZ%2FScreenshot%202024-07-04%20153746.png?alt=media&amp;token=8ae85f64-d0e6-4c4a-b4f0-93a050323296" 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="https://3554096695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FClasSjSYpFMUFyy23ioF%2Fuploads%2FPu28q7vAaN618WzIG0H2%2FScreenshot%202024-07-04%20153539.png?alt=media&amp;token=cdaa4ca9-8cae-4332-87be-4877786c319b" alt="" width="478"><figcaption></figcaption></figure> <figure><img src="https://3554096695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FClasSjSYpFMUFyy23ioF%2Fuploads%2FFaywg7BsyXdbQOiMbEio%2FScreenshot%202024-07-04%20153528.png?alt=media&amp;token=ea63068e-07e3-47c0-a859-e9e2c340ffcc" alt="" width="557"><figcaption></figcaption></figure> <figure><img src="https://3554096695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FClasSjSYpFMUFyy23ioF%2Fuploads%2FED9M47DmPhVRm6kobQ5K%2FScreenshot%202024-07-04%20153511.png?alt=media&amp;token=5b88e37b-2ce2-4c10-b519-e73edb07c0f6" alt="" width="190"><figcaption></figcaption></figure> <figure><img src="https://3554096695-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FClasSjSYpFMUFyy23ioF%2Fuploads%2FAsGKOqrz6tEg7P9y5fSu%2FScreenshot%202024-07-04%20152955.png?alt=media&amp;token=68933c10-df85-4fca-ad02-93f4f3b00fda" alt="" width="446"><figcaption></figcaption></figure></div>
