-.Paradox.- Posted August 7, 2013 Share Posted August 7, 2013 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 ) Link to comment
-.Paradox.- Posted August 8, 2013 Author Share Posted August 8, 2013 dxDrawImage [Can't load] Link to comment
xXMADEXx Posted August 8, 2013 Share Posted August 8, 2013 Try converting the .png file to .jpg Link to comment
-.Paradox.- Posted August 8, 2013 Author Share Posted August 8, 2013 Try converting the .png file to .jpg Still same error Link to comment
TrapLord Studios™ Posted August 8, 2013 Share Posted August 8, 2013 Alright, I would be able to help you here, add me on Skype : avindean6 Link to comment
HunT Posted August 8, 2013 Share Posted August 8, 2013 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 Link to comment
-.Paradox.- Posted August 9, 2013 Author Share Posted August 9, 2013 Thanks again Hunterix and i was asking i want add it to my dx hud what i need to add? Link to comment
HunT Posted August 9, 2013 Share Posted August 9, 2013 After getAccountData in the rank script add setElementData ,and u can use getElementData in the client dx HUD. Link to comment
-.Paradox.- Posted August 9, 2013 Author Share Posted August 9, 2013 I can't understand and im using a dxHud i made it its working perfect without bugs. Link to comment
Castillo Posted August 9, 2013 Share Posted August 9, 2013 What are you trying to do? Link to comment
-.Paradox.- Posted August 9, 2013 Author Share Posted August 9, 2013 Add it to my dxhud, i guess i need to create another code right? I know how to make an image in dxhud. Link to comment
Castillo Posted August 9, 2013 Share Posted August 9, 2013 Same way as scoreboard does it. Link to comment
Castillo Posted August 9, 2013 Share Posted August 9, 2013 Render the image same way as in the scoreboard. Link to comment
-.Paradox.- Posted August 10, 2013 Author Share Posted August 10, 2013 Its ok now i fixed it, can you help me here? https://forum.multitheftauto.com/viewtopic.php?f ... 8&start=15 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now