# 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="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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;token=68933c10-df85-4fca-ad02-93f4f3b00fda" alt="" width="446"><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nextlevelplugins.com/plugins/server-manager/how-tos/merge-with-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
