MrXz Posted January 7, 2012 Posted January 7, 2012 I was testing a script and this is what came out not leave the country with their respective flag Script By -=I Blaawee I=- exports.scoreboard:addScoreboardColumn('Home') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) At the end I think it has to be something like this Please Help would greatly appreciate is the
bandi94 Posted January 7, 2012 Posted January 7, 2012 the Original Scoreboard can't draw images only text you need to edit the scoreboard to draw image and the script don't need admin right
Blaawee Posted January 7, 2012 Posted January 7, 2012 EDIT : mybe this will help you Orange : we don't need your crap useless post's help or shut up and don't spam ----flag.lua exports.scoreboard:addScoreboardColumn('Home') function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) <meta> <script src="flag.lua" type="server" /> </meta> add this on line 705 (maybe you need to ad somewhere els bk your scoreboard is difrent) elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) Make sure to edit the scoreboard
MrXz Posted January 7, 2012 Author Posted January 7, 2012 Does not Operate I'll post again AD: elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) where I have to add this code?
FatalTerror Posted January 7, 2012 Posted January 7, 2012 https://forum.multitheftauto.com/viewtopic.php?f=91&t=38414
Blaawee Posted January 7, 2012 Posted January 7, 2012 add this on line 705 (maybe you need to ad somewhere els bk your scoreboard is difrent)
CapY Posted January 7, 2012 Posted January 7, 2012 add this on line 705 (maybe you need to ad somewhere els bk your scoreboard is difrent) elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) Make sure to edit the scoreboard Do you ever read what people do say ? Edit: Woops, didn't saw earlier posts.
DoKtoR Posted January 10, 2012 Posted January 10, 2012 add this on line 705 (maybe you need to ad somewhere els bk your scoreboard is difrent) Ye but which file?
Thelastride Posted January 10, 2012 Posted January 10, 2012 scoreboard doesnt shows images.Only texts so either you just add names or modify scoreboard.
CapY Posted January 10, 2012 Posted January 10, 2012 You need to edit Scoreboard resource for that, make sure to read all posts again, because i see you just ignore them.
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