Jump to content

Help please


Recommended Posts

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)

 

 

OoCPZBV.png

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...