Jump to content

Rank


Recommended Posts

Posted

Hello, its me again, i have a bug in scoreboard, it wont show level image, here is the code.

exports.scoreboard:addScoreboardColumn('Rank',getRootElement(),1,40,'Rank') 
function scoreLevel () 
    local account = getPlayerAccount(source) 
    local Level = getAccountData(account, "LV") 
    if isGuestAccount ( account ) then 
        setElementData(source, "Rank",":experience\\ranks\\lvl_0.png") 
    else 
        setElementData(source, "Rank", tostring(":experience\\ranks\\lvl_"..Level..".png" ))                                       
    end 
end 
addEventHandler("onPlayerSpawn", getRootElement(), scoreLevel) 
addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), 
function() 
        call(getResourceFromName("scoreboard"),"addScoreboardColumn","Rank", getRootElement(), 1, 40) 
    end 
) 
  

i add this line to dxscoreboard_client.lua

elseif column.name == "Rank" then 
dxDrawImage( topX+theX, y-s(0.5), 30, 30, content, 0, 0, 0, cWhite, drawOverGUI ) 

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

Help please

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

dxDrawImage [Can't load]

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

Help please

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted
Try converting the .png file to .jpg

Still same error

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

BUMP!

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

U need delete the client and old scoreboard resource.

First stop the resource scoreboard.

Go to - MTA San Andreas / mods / deathmatch / resource / and delete scoreboard

Go to - MTA San Andreas / server / mods / deathmatch / resource-cache / http-client-files /and delete scoreboard

Back on server and /start scoreboard

Posted

Thanks again Hunterix :D and i was asking i want add it to my dx hud what i need to add?

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

I can't understand :( and im using a dxHud i made it its working perfect without bugs.

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

What are you trying to do?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Add it to my dxhud, i guess i need to create another code right?

I know how to make an image in dxhud.

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

Same way as scoreboard does it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

What you mean?

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted

Render the image same way as in the scoreboard.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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