Jump to content

porque esta GUI no me aparece ?


iFoReX

Recommended Posts

que debo cambiar en esta GUI para que me aparezca ?

server

addEventHandler("onClientResourceStart",resourceRoot,function() 
for index,player in ipairs (getElementsByType("player")) do 
bindKey(player,"s","down",abrirIt) 
end 
end 
) 
  
function abrirIt(thePlayer) 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "jefeBKZ" ) ) then 
if getKeyState("lctrl") then 
triggerServerEvent(source,"abrir:It",source) 
end 
end 
end 
  

client

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Grid = {} 
  
GUIEditor_Window[1] = guiCreateWindow(0.2225,0.03,0.535,0.9333,"GUI Clan System.",true) 
GUIEditor_Button[1] = guiCreateButton(17,96,121,38,"Agregar Miembro",false,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(17,140,121,42,"Remover Miembro",false,GUIEditor_Window[1]) 
GUIEditor_Grid[1] = guiCreateGridList(16,241,120,307,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
  
all = guiGridListAddColumn(GUIEditor_Grid[1],"Jugadores",0.2) 
GUIEditor_Grid[2] = guiCreateGridList(144,52,275,499,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[2],2) 
  
guiGridListAddColumn(GUIEditor_Grid[2],"Miembros del Clan",0.7) 
  
guiGridListAddColumn(GUIEditor_Grid[2],"Rango",0.2) 
GUIEditor_Button[3] = guiCreateButton(17,52,121,38,"Agregar Jefe",false,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(17,188,121,42,"Darle Rango",false,GUIEditor_Window[1]) 
  
GUIEditor_Window[2] = guiCreateWindow(0.3237,0.215,0.4487,0.5183,"Rank GUI",true) 
GUIEditor_Grid[3] = guiCreateGridList(9,22,218,280,false,GUIEditor_Window[2]) 
guiGridListSetSelectionMode(GUIEditor_Grid[3],2) 
  
guiGridListAddColumn(GUIEditor_Grid[3],"Rangos",0.2) 
GUIEditor_Button[5] = guiCreateButton(233,27,117,48,"Darle Rango !",false,GUIEditor_Window[2]) 
GUIEditor_Button[6] = guiCreateButton(233,255,117,45,"Cancelar",false,GUIEditor_Window[2]) 
  
guiSetVisible(GUIEditor_Window[1],false) 
guiSetVisible(GUIEditor_Window[2],false) 
showCursor(false) 
  
addEvent("abrir:It",true) 
addEventHandler("abrir:It",root,function() 
guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
showCursor(guiGetVisible(GUIEditor_Window[1])) 
if guiGetVisible(GUIEditor_Window[2]) == 'true' then 
guiSetVisible(GUIEditor_Window[2],false) 
end 
end 
) 
  
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),function() 
for index,player in ipairs ( getElementsByType("player") ) do 
local row = guiGridListAddRow(GUIEditor_Grid[1]) 
guiGridListSetItemText( GUIEditor_Grid[1], row, all, getPlayerName( player ), false, false) 
end 
end 
) 

Link to comment
  • Recently Browsing   0 members

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