GamerDeMTA Posted June 19, 2013 Share Posted June 19, 2013 HI!! I want to add a coluMn to the scorebord! Which says the weapon of the player!! Can SomeOne SayMe Howw=?? Link to comment
iPrestege Posted June 19, 2013 Share Posted June 19, 2013 Not tested : exports [ "scoreboard" ]:scoreboardAddColumn ( 'aWeapon' ) for _,v in next, getElementsByType ( 'player' ) do setElementData ( v,'aWeapon','N/A' ) end addEventHandler('onPlayerJoin',root, function ( ) setElementData ( source,'aWeapon','N/A' ) end ) addEventHandler('onPlayerWeaponSwitch',root, function ( previousWeaponID,currentWeaponID ) local Weapon = getWeaponNameFromID ( previousWeaponID or currentWeaponID ) if Weapon then setElementData ( source,'aWeapon',Weapon or 'N/A' ) end end ) I want this too because that i give it you server side!. Link to comment
GamerDeMTA Posted June 19, 2013 Author Share Posted June 19, 2013 Thanks :DD hey how to put it as the third column or the 4th? Link to comment
PaiN^ Posted June 19, 2013 Share Posted June 19, 2013 exports.scoreboard:scoreboardSetColumnPriority( ... ) 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