# How to get the display name of a player?

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [April 3, 2023, 2:18pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455 "2023-04-03T14:18:29Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![AJ\_Lakeman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_lakeman/32/770700_2.png) [@AJ\_Lakeman](https://forums.unrealengine.com/u/AJ_Lakeman)\
**Post date:** [April 3, 2023, 2:18pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/1 "2023-04-03T14:18:29Z")

</div>

Hey,

Is it possible to get the name of a given player/character yet?

Thanks!

---

<div class="post-metadata">

**Author:** ![UnrealVerseGuru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnrealVerseGuru](https://forums.unrealengine.com/u/UnrealVerseGuru)\
**Post date:** [April 3, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/2 "2023-04-03T15:58:02Z")

</div>

o/ from code no, you can reference player name in Hud Message Device using {playername}

---

<div class="post-metadata">

**Author:** ![AJ\_Lakeman](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aj_lakeman/32/770700_2.png) [@AJ\_Lakeman](https://forums.unrealengine.com/u/AJ_Lakeman)\
**Post date:** [April 3, 2023, 4:04pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/3 "2023-04-03T16:04:55Z")

</div>

Thanks. That’s unfortunate, hopefully it’s something that will eventually be available in code.

---

<div class="post-metadata">

**Author:** ![sir\_axe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sir\_axe](https://forums.unrealengine.com/u/sir_axe)\
**Post date:** [July 16, 2023, 8:47pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/4 "2023-07-16T20:47:40Z")

</div>

Is this still unavailable ? can’t find anything

---

<div class="post-metadata">

**Author:** ![itascreations](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@itascreations](https://forums.unrealengine.com/u/itascreations)\
**Post date:** [July 17, 2023, 2:53pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/5 "2023-07-17T14:53:35Z")

</div>

Yep, still not avaible

---

<div class="post-metadata">

**Author:** ![ScoutJLY](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scoutjly/32/744953_2.png) [@ScoutJLY](https://forums.unrealengine.com/u/ScoutJLY)\
**Post date:** [August 1, 2023, 8:37am UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/6 "2023-08-01T08:37:18Z")

</div>

it will be very helpful if this is implemented, i’m trying to reference and print player name but it is not available.

---

<div class="post-metadata">

**Author:** ![modena3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@modena3d](https://forums.unrealengine.com/u/modena3d)\
**Post date:** [August 16, 2023, 12:39pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/7 "2023-08-16T12:39:58Z")

</div>

It’s limitations are ridiculously simple and usual. Really should know it’s something all Devs would like to take advantage of

---

<div class="post-metadata">

**Author:** ![UNREG](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unreg/32/740541_2.png) [@UNREG](https://forums.unrealengine.com/u/UNREG)\
**Post date:** [October 3, 2023, 10:37pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/8 "2023-10-03T22:37:02Z")

</div>

I’m waiting too… Hope they be aware that many of us need this

---

<div class="post-metadata">

**Author:** ![Bnerd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bnerd](https://forums.unrealengine.com/u/Bnerd)\
**Post date:** [November 2, 2023, 6:22pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/9 "2023-11-02T18:22:04Z")

</div>

Adding my +1 for this. Just spent the last 2 hours trying to figure out how to get the Player name.

---

<div class="post-metadata">

**Author:** ![\_Jac0b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_Jac0b](https://forums.unrealengine.com/u/_Jac0b)\
**Post date:** [January 3, 2024, 10:30pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/10 "2024-01-03T22:30:57Z")

</div>

```auto
DisplayNameOfCharacter(Agent:agent):void=
        YourBillboard.SetText(MakeAgentName(Agent))

MakeAgentName<localizes> (Agent:agent):message= "{Agent}"

```

---

<div class="post-metadata">

**Author:** ![SGSensei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SGSensei](https://forums.unrealengine.com/u/SGSensei)\
**Post date:** [January 30, 2024, 11:30pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/11 "2024-01-30T23:30:02Z")

</div>

This does not seem to work. Just keeps giving me back “Anonymous[256]”

---

<div class="post-metadata">

**Author:** ![JamieDeGamie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JamieDeGamie](https://forums.unrealengine.com/u/JamieDeGamie)\
**Post date:** [January 31, 2024, 4:17pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/12 "2024-01-31T16:17:11Z")

</div>

Do you have streamer mode on?

---

<div class="post-metadata">

**Author:** ![itsJaiger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@itsJaiger](https://forums.unrealengine.com/u/itsJaiger)\
**Post date:** [February 1, 2024, 7:29am UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/13 "2024-02-01T07:29:04Z")

</div>

No. I’m having the same output. It’s 256 for me as well.

---

<div class="post-metadata">

**Author:** ![EvergreenCoyote](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvergreenCoyote](https://forums.unrealengine.com/u/EvergreenCoyote)\
**Post date:** [February 2, 2024, 7:45pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/14 "2024-02-02T19:45:14Z")

</div>

That could be due to the player having Anonymous mode on, no solution for that

---

<div class="post-metadata">

**Author:** ![itsJaiger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@itsJaiger](https://forums.unrealengine.com/u/itsJaiger)\
**Post date:** [February 5, 2024, 2:05am UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/15 "2024-02-05T02:05:04Z")

</div>

it’s not anonymous mode causing it. Same result with anonymous mode disabled.

---

<div class="post-metadata">

**Author:** ![Maxle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxle](https://forums.unrealengine.com/u/Maxle)\
**Post date:** [May 25, 2024, 2:12pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/16 "2024-05-25T14:12:15Z")

</div>

Still in 2024 not possible?

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [May 27, 2024, 7:45pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/17 "2024-05-27T19:45:54Z")

</div>

hi @SG Sensei ,  
There is a need to test if the Agent is a real Fortnite Character or an AI Agent

[[Feature request] Get player name in Verse ](https://forums.unrealengine.com/t/feature-request-get-player-name-in-verse/1378109/7)

---

<div class="post-metadata">

**Author:** ![HYPER\_XD2007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HYPER\_XD2007](https://forums.unrealengine.com/u/HYPER_XD2007)\
**Post date:** [July 15, 2024, 5:36pm UTC](https://forums.unrealengine.com/t/how-to-get-the-display-name-of-a-player/840455/18 "2024-07-15T17:36:43Z")

</div>

Actually, you can display the username of a player shortly, with the logs showing on screen during UEFN Sessions (under the EDIT MODE UI top left)

If you open the actual LOG, the names will display as Anonymous[xxx], so you have to be quick to take a look at it.

```auto
GetAgentName<localizes>(Agent:agent)<computes>: message = "{Agent}"

PrintPlayerName(Agent:agent):void=
    Username : message = GetAgentName(Agent)
    Print(Username)

```

This is the only way I have gotten it to work, I haven’t really played around with it much (e.g. UI etc.)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/4/ed4f47e233f85b80b278d019107777e304c148ad.jpeg)
