Of course it's not working if you define the nick once...
local screenWidth, screenHeight = guiGetScreenSize ( )
function createText ( )
dxDrawText ( getPlayerName(localPlayer), 970, screenHeight - 27, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 2, "arial" )
end
function HandleTheRendering ( )
addEventHandler ( "onClientRender", root, createText ) -- keep the text visible with onClientRender.
end
addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering )