Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: rzecz...
1. brak grid listy oraz jeszcze jedna rzecz...
to zn?w ja z moim panelem xd tym razem chodzi, ?e mam taki kod i nie pokazuje mi si? wgl. grid lista

GUIEditor 
= {
    
gridlist = {},
    
staticimage = {},
    
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
local screenW, screenH = guiGetScreenSize()
        
GUIEditor.staticimage[1] = guiCreateStaticImage((screenW - 640) / 2, (screenH - 400) / 2, 640, 400, ":obrazki3/images/3.png", false)
 
GUIEditor.label[1] = guiCreateLabel(13, 297, 168, 59, "  ", false, GUIEditor.staticimage[1])
       
GUIEditor.gridlist[1] = guiCreateGridList(374, 42, 248, 338, false, GUIEditor.staticimage[1])
        
guiGridListAddColumn(GUIEditor.gridlist[1], "Gracz", 0.9)
        
guiSetAlpha(GUIEditor.gridlist[1], 0.71)    
       

        
guiSetVisible(GUIEditor.staticimage[1],false) 


    
end
)

function 
openPanel()
guiSetVisible(GUIEditor.staticimage[1], true)
showCursor(true)
end
addCommandHandler
("pp", openPanel)

function 
zamykamy()
 if 
source == GUIEditor.label[1] then 
guiSetVisible
(GUIEditor.staticimage[1],false) showCursor(false) 
end
end 
addEventHandler
("onClientGUIClick", root, zamykamy)


Dodatkowym problemem jest to, ?e je?li gracz wchodzi na serwer od razu pojawia mu si? panel jak zmienic to tak by panel pojawia? si? dopiero po komendzie ?