# Manage Players In-Game

### Search for Players

To search for a player, simply enter their Platform ID into the search bar and press Enter. If the player, or multiple players are found, LootLocker will display their profiles below the search bar. Click `View` to load the player's profile.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-a7d4c069dc03b1330128f08028e5df3f411023ad%2Fplayer-search.png?alt=media\&token=f74b3495-d396-4e1a-97f3-3c79bcf85dd4)

### Retrieving player information

From the web console you can use the view button on players to view a specific player.

![](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-7ea296373eb83c4cfaf1bb5464697ade0bb25326%2Fplayer-details.png?alt=media\&token=199c71e3-bb8b-4fe7-9836-fb9ce7ee9c1d)

From here it's possible to give players assets and change player storage items.

#### Retrieve Player Information in Game

Retrieving player info from your game returns information about level and account balance. See our [progression how-to](https://github.com/lootlocker/gitbook-sync/blob/main/game-systems/progressions/set-up-progressions/use-a-progression-system-in-game.md) for how to use this in the SDK

### Public/Private Profile

This is currently used to disable any inventory integration with Steam.

Setting a players profile to private also hides their Steam items attached to your game from their Steam profile.

![Switch between public and private profile](https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-9f02c71a5d7bc43dda2a3781c316aea9ca9ff238%2Fpublic-private.png?alt=media\&token=8e6d28e9-6e48-4783-8173-a3d519c590de)

#### Change Public/Private Profile in Game

See the following examples for how to change from/to public and profile for a player.

{% tabs %}
{% tab title="Unity" %}

```csharp
// Set to private
LootLockerSDKManager.SetProfilePrivate((response) =>
{
    if (response.success)
    {
        Debug.Log("profile successfully to private");
    }
    else
    {
        Debug.Log("failed setting profile to private");
    }
});

// Set to public
LootLockerSDKManager.SetProfilePublic((response) =>
{
    if (response.success)
    {
        Debug.Log("profile successfully to public");
    }
    else
    {
        Debug.Log("failed setting profile to public");
    }
});
```

{% endtab %}

{% tab title="Unreal" %}

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-f89fb178537292d236b444af48479a1324e2aa2c%2Fimage.png?alt=media" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/9j9gd_3t/">Blueprint example of setting profile to private</a></p></figcaption></figure>

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-b85244ef74503c2e07a3d677b462e4d52ce10b35%2Fimage.png?alt=media" alt=""><figcaption><p><a href="https://blueprintue.com/blueprint/89hthn82/">Blueprint example of setting profile to public</a></p></figcaption></figure>
{% endtab %}

{% tab title="Godot" %}

```gdscript

# Set to private
var response = await LL_Players.SetPlayerProfilePublic.new().send()
if(!response.success) :
    # Request failed, handle errors
    pass
else:
    # Request succeeded, use response as applicable in your game logic
    pass

# Set to public
var response = await LL_Players.SetPlayerProfilePrivate.new().send()
if(!response.success) :
    # Request failed, handle errors
    pass
else:
    # Request succeeded, use response as applicable in your game logic
    pass
```

{% endtab %}

{% tab title="REST" %}
**Set to Public**

```bash
curl -X POST "https://api.lootlocker.io/game/v1/player/profile/public" \
  -H "x-session-token: your_token_here"
```

Example response:

```json
{
  "success": true
}
```

**Set to Private**

```bash
curl -X DELETE "https://api.lootlocker.io/game/v1/player/profile/public" \
  -H "x-session-token: your_token_here"
```

Example response:

```json
{
  "success": true
}
```

{% endtab %}
{% endtabs %}
