Jump to content

NameTags HELP !!


yoya99

Recommended Posts

thx buddy....i have the next porblem...i want to create a system that symbols for admins,moderators and players are show.... how can i do it??? i have this here but it is not working:

function showImage() 
dxDrawImage() 
  
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Everyone" ) ) then 
dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "player.png" ) 
                      end 
  
  
  
 if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "admin.png" ) 
                      end 
  
  
 if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then 
dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "moderator.png" ) 
                      end 
  
  
 if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
  
dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "vip.png" ) 
                      end 
end 
addEventHandler("onClientResourceStart", resourceRoot, function() addEventHandler("onClientRender", root, showImage) end) 
  

Link to comment
thx buddy....i have the next porblem...i want to create a system that symbols for admins,moderators and players are show.... how can i do it??? i have this here but it is not working:
function showImage() 
dxDrawImage() 
  
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Everyone" ) ) then 
dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "player.png" ) 
                      end 
  
  
  
 if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "admin.png" ) 
                      end 
  
  
 if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then 
dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "moderator.png" ) 
                      end 
  
  
 if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then 
  
dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "vip.png" ) 
                      end 
end 
addEventHandler("onClientResourceStart", resourceRoot, function() addEventHandler("onClientRender", root, showImage) end) 
  

You're using server side functions in client side.

You need to use,

  
triggerServerEvent 
triggerClientEvent 
  

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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