Jump to content

How To Add image in the scoreboard


HoLsTeN

Recommended Posts

Try to add it clientside. If it works, make something like this:

  
server: 
triggerClientEvent ("onImageAddToScoreboard", getRootElement(), player, imagepath) 
  
client: 
function ... (player, imagepath) 
     guiCreateStaticImage (..., path) 
     setElementData (player, "pic", image) 
end 
addEvent ("onImageAddToScoreboard", true) 
addEventHandler ("onImageAddToScoreboard", getRootElement(), function) 
  

Server triggers event to ALL clients, and clients create image and then set it to the scoreboard. But im still not sure, that will work.

Link to comment
Try to add it clientside. If it works, make something like this:

  
server: 
triggerClientEvent ("onImageAddToScoreboard", getRootElement(), player, imagepath) 
  
client: 
function ... (player, imagepath) 
     guiCreateStaticImage (..., path) 
     setElementData (player, "pic", image) 
end 
addEvent ("onImageAddToScoreboard", true) 
addEventHandler ("onImageAddToScoreboard", getRootElement(), function) 
  

Server triggers event to ALL clients, and clients create image and then set it to the scoreboard. But im still not sure, that will work.

thx for try

i try with your code but not work

When i used /debugscript 3 no Eror

:cry:

Link to comment

Hmm not tested but should work, adds picture after player name

open dxscoreboard_client.lua and go to line 701

make one free line there and add

dxDrawImage( xPos,  y+s(1), 15, 10, "picture.png", 180, 0, 0, cWhite, drawOverGUI ) 

will look like

xPos = xPos + textLength 
end 
dxDrawImage( xPos,  y+s(1), 15, 10, "picture.png", 180, 0, 0, cWhite, drawOverGUI ) 
else 

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...