Jump to content

Problem nametag


SteeLRO

Recommended Posts

  • Moderators

Sure:

local screenW, screenH = guiGetScreenSize() 
  
addEventHandler("onClientResourceStart", resourceRoot, function () 
    for k, player in ipairs (getElementsByType("player")) do 
        setPlayerNametagShowing(player, false) 
    end 
end) 
  
function drawMyName() 
    local myName = getPlayerName(localPlayer) 
    local x, y = screenW/2, screenH/2 
    dxDrawText(tostring(myName), x, y) 
end 
addEventHandler("onClientRender", root, drawMyName) 

Link to comment
Sure:
local screenW, screenH = guiGetScreenSize() 
  
addEventHandler("onClientResourceStart", resourceRoot, function () 
    for k, player in ipairs (getElementsByType("player")) do 
        setPlayerNametagShowing(player, false) 
    end 
end) 
  
function drawMyName() 
    local myName = getPlayerName(localPlayer) 
    local x, y = screenW/2, screenH/2 
    dxDrawText(tostring(myName), x, y) 
end 
addEventHandler("onClientRender", root, drawMyName) 

Ty

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...