Does anyone know how to change a player's name? #830
Answered
by
AshleighAdams
AshleighAdams
asked this question in
Q&A
-
I'm looking for the equiv of |
Beta Was this translation helpful? Give feedback.
Answered by
AshleighAdams
Mar 29, 2025
Replies: 1 comment
-
Ah, never mind, setting it on [GameEventHandler]
public HookResult OnPlayerConnectFull(EventPlayerConnectFull e, GameEventInfo info)
{
if (e.Userid?.IsValid is false or null)
return HookResult.Continue;
if (e.Userid.IsBot || e.Userid.IsHLTV)
return HookResult.Continue;
e.Userid.PlayerName = "Test";
return HookResult.Continue;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AshleighAdams
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, never mind, setting it on
EventPlayerConnect
didn't work, but it does work onEventPlayerConnectFull
: