scary11 Posted November 10, 2017 Share Posted November 10, 2017 Can anyone edit this script i lost mine, please im new member :DD Link to comment
arciCZ Posted November 10, 2017 Share Posted November 10, 2017 Send ther source code. If we dont have source then we can edit anything. Link to comment
scary11 Posted November 10, 2017 Author Share Posted November 10, 2017 (edited) 2 hours ago, arciCZ said: Send ther source code. If we dont have source then we can edit anything. as i said i lost if they know this is nais too and lost toooo.. Edited November 10, 2017 by Ant!christ Link to comment
TorNix~|nR Posted November 10, 2017 Share Posted November 10, 2017 -- server-side function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Country",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) Add this on scoreboard client-side elseif column.name == "Country" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) tell me if there is a problem. 1 Link to comment
scary11 Posted November 11, 2017 Author Share Posted November 11, 2017 9 hours ago, TorNix~|nR said: -- server-side function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Country",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) Add this on scoreboard client-side elseif column.name == "Country" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) tell me if there is a problem. didn't open can u edit for me if u can : D 1 Link to comment
TorNix~|nR Posted November 12, 2017 Share Posted November 12, 2017 What do you mean with didn't open? Link to comment
scary11 Posted November 20, 2017 Author Share Posted November 20, 2017 On 12.11.2017 at 17:58, TorNix~|nR said: What do you mean with didn't open? i dont know what i do Just now, Ant!christ said: i dont know what i do so I ask you to help me 1 Link to comment
msyyn Posted November 21, 2017 Share Posted November 21, 2017 12 hours ago, Ant!christ said: i dont know what i do so I ask you to help me He literally said what you have to do Add the first code snippet to a server lua file and the 2nd one to scoreboard's client-side file. 1 Link to comment
TorNix~|nR Posted November 21, 2017 Share Posted November 21, 2017 (edited) On 10/11/2017 at 22:53, TorNix~|nR said: -- server-side function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Country",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) Add this on scoreboard client-side elseif column.name == "Country" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) tell me if there is a problem. Create a server-side scritp, then add the Serve-Side then go to 'scoreboard' resource, then open dxscoreboard_client after that add the Client-Side on line 724 before this code: dxDrawImage ( topX+theX, y, itemWidth, itemHeight, content.src, content.rot, content.rotOffX, content.rotOffY, content.color, drawOverGUI ) end If you got a problem, tell me. Edited November 21, 2017 by TorNix~|nR A little mistake. 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