> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyXblChatUser::GetLocal

> PartyXblChatUser::GetLocal in PartyXboxLive.h returns the PartyXblLocalChatUser view of a chat user when local, used with the PlayFab Party XBOX Live helper.

Gets the PartyXblLocalChatUser version of this chat user.

## Syntax

```cpp theme={null}
PartyError GetLocal(  
    PartyXblLocalChatUser** localChatUser  
)  
```

### Parameters

**`localChatUser`**   [PartyXblLocalChatUser\*\*](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/partyxbllocalchatuser)\
*library-allocated output, may return nullptr*

The output local version of this chat user object, or nullptr if this is not a local chat user.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyXblManager::GetErrorMessage()](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_geterrormessage).

## Requirements

**Header:** PartyXboxLive.h

## See also

[PartyXblChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser)


## Related topics

- [PartyXblLocalChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/partyxbllocalchatuser.md)
- [PartyXblChatUser](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/partyxblchatuser.md)
- [PartyXblChatUser::GetCustomContext](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getcustomcontext.md)
- [PartyXblChatUser::SetCustomContext](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_setcustomcontext.md)
- [PartyXblLocalChatUser::GetRequiredChatPermissionInfo](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblLocalChatUser/methods/partyxbllocalchatuser_getrequiredchatpermissioninfo.md)
