# Invite User To Game

{% hint style="success" %}

#### Like what you're seeing?

Support us as a [GitHub Sponsor](https://kb.heathen.group/old-kb/where-to-buy/become-a-sponsor) 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](https://kb.heathen.group/old-kb/where-to-buy/become-a-sponsor) ... become a sponsor today!
{% endhint %}

## Introduction

Invites a friend or clan member to the current game using a special invite string.\
\
If the target user accepts the invite then the pchConnectString gets added to the command-line when launching the game.\
If the game is already running for that user, then they will receive a [GameRichPresenceJoinRequested\_t](https://partner.steamgames.com/doc/api/ISteamFriends#GameRichPresenceJoinRequested_t) callback with the connect string.

### User ID (Input)

The user you want to invite

### Connection String (input)

The connection string you want to send that friend

### Return Value

True if the invite was successfully sent

False under the following conditions:

* The User ID provided was invalid.
* The User ID provided is not a friend or does not share the same Steam Group as the current user.
* The value provided to the Connection String was too long.

## Nodes

<figure><img src="https://4053370152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZWu8yFOWhCYCMkJFmR%2Fuploads%2FDP57Gs0jA9Zv82KCqDls%2Fimage.png?alt=media&#x26;token=95e41414-4bbf-42cf-b6c2-05ffe0e939ec" alt=""><figcaption></figcaption></figure>
