xRGamingx Posted May 4, 2017 Share Posted May 4, 2017 Hello friends, I need you to help me, How can I make the name Squad appear in Blue . function PonerGruposCreados(tab) guiGridListClear(listatodoslosgrupos) local migrupo = getElementData(localPlayer, "Group") for i, grupo in pairs(tab) do local row = guiGridListAddRow(listatodoslosgrupos) guiGridListSetItemText(listatodoslosgrupos, row, 1, "["..tostring(grupo.TagGrupo).."] - "..tostring(grupo.GrupoNombre).."", false, true) guiGridListSetItemText(listatodoslosgrupos, row, 2, tostring(grupo.NombreLider), false, true) guiGridListSetItemText(listatodoslosgrupos, row, 3, tostring(grupo.Miembros), false, true) guiGridListSetItemText(listatodoslosgrupos, row, 4, tostring(grupo.TipoGrupo), false, true) guiGridListSetItemText(listatodoslosgrupos, row, 5, tostring(grupo.DineroGrupo), false, true) guiGridListSetItemText(listatodoslosgrupos, row, 6, tostring(grupo.GrupoAliado), false, true) guiGridListSetItemText(listatodoslosgrupos, row, 7, tostring(grupo.FechaCreacion), false, true) local cantidaddemiembrostotal = 1---SLOT local cantidadmiembro = tostring(grupo.Miembros) if ( tonumber (cantidadmiembro) >= tonumber(cantidaddemiembrostotal) ) then for i = 1, 7 do guiGridListSetItemColor(listatodoslosgrupos, row, i, 255, 0, 0) end end if grupo.GangNamea == migrupo then local player = getPlayerFromName(grupo.GangNamea) if player and getElementData(player, "Group") == migrupo then end end end guiSetText(PanelTodoGrupo, "Group - "..guiGridListGetRowCount ( listatodoslosgrupos ).." Group)") end addEvent("PonerGruposCreados", true) addEventHandler("PonerGruposCreados", root, PonerGruposCreados) Link to comment
Captain Cody Posted May 4, 2017 Share Posted May 4, 2017 Replace line 17 with guiGridListSetItemColor(listatodoslosgrupos, row, i, 0, 0, 255) Link to comment
xRGamingx Posted May 4, 2017 Author Share Posted May 4, 2017 1 hour ago, CodyJ(L) said: Replace line 17 with guiGridListSetItemColor(listatodoslosgrupos, row, i, 0, 0, 255) Cody Friend this is an example of what I want. Link to comment
Mr.Loki Posted May 5, 2017 Share Posted May 5, 2017 Here u go... for i = 1, 7 do local r,g,b = i == 4 and 0,0,255 or 255,0,0 guiGridListSetItemColor(listatodoslosgrupos, row, i, r,g,b) end 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