Back to Library
UI Nov 20, 2025

Add UI to player that joins

T
by terrorsoul

This snippet adds a small label ui to every player that joins that says "Hello, [username]"

LUA
function onPlayerJoined(player)
    tm.playerUI.AddUILabel(player.playerId, "playerlbl" .. tostring(player.playerId), "Hello, " .. player.playerName)
end

-- Add new UI to the player that joins
tm.players.OnPlayerJoined.add(onPlayerJoined)

Discussion

Please log in to post a comment.