With:
function getSkillFunc(player,Levelids)
if ( Levelids ) then
local skillsID = tonumber( Levelids )
triggerClientEvent(player, "selectSkill", getRootElement() ,skillsID)
return true
else
return false
end
end
And this:
addEvent("selectSkill",true)
addEventHandler( "selectSkill", getRootElement(),
function(skillsID)
if (tonumber(skillsID)) then
guiGridListSetItemText(GUIEditor_Grid[211],tonumber(skillsID),5,"purchased",false,false)
guiGridListSetItemColor (GUIEditor_Grid[211],tonumber(skillsID),5,0,255,0)
outputChatBox("text change "..tonumber(skillsID))
end
end
)
it works perfectly, take a look at this screenshot.
http://img855.imageshack.us/i/mtascreen ... 82115.png/