-.Paradox.- Posted August 7, 2013 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 )
-.Paradox.- Posted August 8, 2013 Author Posted August 8, 2013 Try converting the .png file to .jpg Still same error
TrapLord Studios™ Posted August 8, 2013 Posted August 8, 2013 Alright, I would be able to help you here, add me on Skype : avindean6
HunT Posted August 8, 2013 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
-.Paradox.- Posted August 9, 2013 Author Posted August 9, 2013 Thanks again Hunterix and i was asking i want add it to my dx hud what i need to add?
HunT Posted August 9, 2013 Posted August 9, 2013 After getAccountData in the rank script add setElementData ,and u can use getElementData in the client dx HUD.
-.Paradox.- Posted August 9, 2013 Author Posted August 9, 2013 I can't understand and im using a dxHud i made it its working perfect without bugs.
-.Paradox.- Posted August 9, 2013 Author 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.
-.Paradox.- Posted August 10, 2013 Author 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
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