# Set Lobby Data

{% hint style="success" %}

#### Like what you're seeing?

Support us as a [GitHub Sponsor](/old-kb/where-to-buy/become-a-sponsor.md) and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude.\
\
These articles are made possible by our [GitHub Sponsors](/old-kb/where-to-buy/become-a-sponsor.md) ... become a sponsor today!
{% endhint %}

## Introduction

Sets a key/value pair in the lobby metadata. This can be used to set the lobby name, current map, game mode, etc.\
\
This can only be set by the owner of the lobby. Lobby members should use Set Lobby Member Data instead.\
\
Each user in the lobby will receive notification of the lobby data change via a [Lobby Data Update](/old-kb/old-toolkit-for-steamworks/unreal/blueprint-nodes/events/lobby-data-update.md) callback, and any new users joining will receive any existing data.\
\
This will only send the data if it has changed. There is a slight delay before sending the data so you can call this repeatedly to set all the data you need to and it will automatically be batched up and sent after the last sequential call.

### Lobby Id

The Steam ID of the lobby to set

### Key

The key of the data to set

### Value

The value of the data to set

### Return Value

True if set successfully, false indicates the lobby ID is invalid or the key/value is to long.

## Nodes

<figure><img src="/files/rjLZFApVXufjShmiyCay" alt=""><figcaption></figcaption></figure>


---

# 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://kb.heathen.group/old-kb/old-toolkit-for-steamworks/unreal/blueprint-nodes/functions/set-lobby-data.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.
