xTravax Posted July 22, 2014 Share Posted July 22, 2014 hi i am new with scoreboard functions and i barely know them, i looked into wiki ,im using dxscoreboard resource which i renamed to scoreboard and im using this code exports.scoreboard:scoreboardAddColumn( "Player Level" ) function dxScore() setTimer(function() local gData = getElementData(source,"LV") setElementData ( source, "Player Level", gData ) end,1500,0) end addEventHandler("onPlayerLogin",root,dxScore) this makes column on scoreboard with value 0,but i can't change it pls help Link to comment
Et-win Posted July 22, 2014 Share Posted July 22, 2014 You have to send the source with the timer, because setTimer doesn't have a source. exports.scoreboard:scoreboardAddColumn( "Player Level" ) function dxScore() setTimer(function(tPlayer) local gData = getElementData(tPlayer,"LV") setElementData ( tPlayer, "Player Level", gData ) end,1500,0, source) end addEventHandler("onPlayerLogin",root,dxScore) Link to comment
xTravax Posted July 22, 2014 Author Share Posted July 22, 2014 thanks,just one more question related to scoreboard: what function do i need to use to draw an image left of the that Level tab on scoreboard? Link to comment
Et-win Posted July 22, 2014 Share Posted July 22, 2014 dxDrawImage I don't know or you can send it to the scoreboard in a way, but I think you have to edit the scoreboard resource for that. Link to comment
xTravax Posted July 22, 2014 Author Share Posted July 22, 2014 i tried editting and debugging but it always went to else part and outputted the message which indicates that it doesnt word Link to comment
-.Paradox.- Posted July 22, 2014 Share Posted July 22, 2014 You mean like 2 element Datas in one column? 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