Cocodrilo Posted April 18, 2013 Share Posted April 18, 2013 hi all.. i would like add a column at scoreboard by Skin. I try with this.. what is wrong? function ocupacion(thePlayer) theSkinID = getElementModel (source) if (theSkinID == 280) then setElementData ( thePlayer, "Policia", true) end end call(getResourceFromName("scoreboard"), "scoreboardAddColumn", "Ocupacion", root, 100) addEventHandler ("onPlayerSpawn", getRootElement(), ocupacion) Link to comment
Castillo Posted April 18, 2013 Share Posted April 18, 2013 call ( getResourceFromName ( "scoreboard" ), "scoreboardAddColumn", "Ocupacion", root, 100 ) function ocupacion ( ) local theSkinID = getElementModel ( source ) if ( theSkinID == 280 ) then setElementData ( source, "Ocupacion", "Policia" ) end end addEventHandler ( "onPlayerSpawn", getRootElement(), ocupacion ) Link to comment
Cocodrilo Posted April 18, 2013 Author Share Posted April 18, 2013 works !! Thank you so much!! 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