Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-10-03, 17:34


Zbyklon







Wiek: 50
Na forum: 4290 dni
Posty: 45
Nick w MP: Zbyklon

Piwa: 7

Respekt: 55,3

Witam ot?? mam pytanie co zrobi? aby GUI otwiera?o si? tylko po klikni?ciu klawisza "F2".
Chodzi dok?adnie o to ze po wej?ciu do gry razem z panelem logowania pojawia si? te GUI co zrobi? aby tak si? nie dzia?o.



GUIEditor = {
    tab = {},
    tabpanel = {},
    label = {},
    window = {},
    memo = {}
}
addEventHandler("onClientResourceStart"resourceRoot,
    function ()
        local SCREEN_WIDTHSCREEN_HEIGHT guiGetScreenSize()
        GUIEditor.window[1] = guiCreateWindow(SCREEN_WIDTH 540SCREEN_HEIGHT 339  1080678"PANEL POMOCY"false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.tabpanel[1] = guiCreateTabPanel(23271031617falseGUIEditor.window[1])

        GUIEditor.tab[1] = guiCreateTab("4 LIFE"GUIEditor.tabpanel[1])

        GUIEditor.label[1] = guiCreateLabel(1056330219"Skrypterzy : AeroX"falseGUIEditor.tab[1])
        GUIEditor.label[2] = guiCreateLabel(1054430219"Maperzy : ..."falseGUIEditor.tab[1])
        GUIEditor.label[3] = guiCreateLabel(1052531819"HeadAdministracja : AeroX, Lukasz1393, VectorPL, Marko"falseGUIEditor.tab[1])
        GUIEditor.label[4] = guiCreateLabel(1050630219"W?a?ciciele : AeroX"falseGUIEditor.tab[1])

        GUIEditor.tab[2] = guiCreateTab("Regulamin"GUIEditor.tabpanel[1])

        GUIEditor.memo[1] = guiCreateMemo(1762999521""falseGUIEditor.tab[2])
        guiMemoSetReadOnly(GUIEditor.memo[1], true)
        GUIEditor.memo[2] = guiCreateMemo(2941344539"                                       REGULAMIN SERWERA                                  "falseGUIEditor.tab[2])
        guiMemoSetReadOnly(GUIEditor.memo[2], true)

        GUIEditor.tab[3] = guiCreateTab("Komendy"GUIEditor.tabpanel[1])

        GUIEditor.label[5] = guiCreateLabel(379229453129"WKR?TCE !"falseGUIEditor.tab[3])
        guiSetFont(GUIEditor.label[5], "sa-header")

        GUIEditor.tab[4] = guiCreateTab("Animacje"GUIEditor.tabpanel[1])

        GUIEditor.label[6] = guiCreateLabel(379229368189"WKR?TCE !"falseGUIEditor.tab[4])
        guiSetFont(GUIEditor.label[6], "sa-header")

        GUIEditor.tab[5] = guiCreateTab("V.I.P"GUIEditor.tabpanel[1])

        GUIEditor.label[7] = guiCreateLabel(15321172992"CHWILOWO BRAK PREMIUM !"falseGUIEditor.tab[5])
        guiSetFont(GUIEditor.label[7], "sa-header")

        GUIEditor.tab[6] = guiCreateTab("Aktualizacje"GUIEditor.tabpanel[1])

        GUIEditor.memo[3] = guiCreateMemo(2524979559"=== 2014-10-02  === AeroX ===\n= Uruchomiono system aktualizacji.\n\n\n\n=== 2014-10-02  === AeroX ===\n= Dodano panel pomocy pod klawiszem F2."falseGUIEditor.tab[6])
        guiMemoSetReadOnly(GUIEditor.memo[3], true)
    end
)

bindKey "f2""down", function()
if guiGetVisible(GUIEditor.window[1]) == false then
guiSetVisible GUIEditor.window[1], true )
showCursor true )
else
guiSetVisible GUIEditor.window[1],false)
showCursor (false)
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-03, 18:11


KukiX







Wiek: 34
Na forum: 6718 dni
Posty: 567

Piwa: 17560

Respekt: 160
Respekt: 160Respekt: 160

w onClientResourceStart daj na ko?cu
guiSetVisible(GUIEditor.window[1],false)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-03, 18:35


PolskiSebek12

Programista






Wiek: 28
Na forum: 4347 dni
Posty: 343
Nick w MP: CrosRoad95

Piwa: 3883

Respekt: 288,8
Respekt: 288,8Respekt: 288,8Respekt: 288,8

Ostrzeżeń: 100%
poco on resource start ?
ustaw poprostu gdzies na samym szarym koncu samo: guiSetVisible(GUIEditor.window[1],false)

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-03, 19:21


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

3maj i sprawd? czy dzia?a:

GUIEditor = {
    tab = {},
    tabpanel = {},
    label = {},
    window = {},
    memo = {}
}
addEventHandler("onClientResourceStart"resourceRoot,
    function ()
        local SCREEN_WIDTHSCREEN_HEIGHT guiGetScreenSize()
        GUIEditor.window[1] = guiCreateWindow(SCREEN_WIDTH 540SCREEN_HEIGHT 339  1080678"PANEL POMOCY"false)
        guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)

        GUIEditor.tabpanel[1] = guiCreateTabPanel(23271031617falseGUIEditor.window[1])

        GUIEditor.tab[1] = guiCreateTab("4 LIFE"GUIEditor.tabpanel[1])

        GUIEditor.label[1] = guiCreateLabel(1056330219"Skrypterzy : AeroX"falseGUIEditor.tab[1])
        GUIEditor.label[2] = guiCreateLabel(1054430219"Maperzy : ..."falseGUIEditor.tab[1])
        GUIEditor.label[3] = guiCreateLabel(1052531819"HeadAdministracja : AeroX, Lukasz1393, VectorPL, Marko"falseGUIEditor.tab[1])
        GUIEditor.label[4] = guiCreateLabel(1050630219"W?a?ciciele : AeroX"falseGUIEditor.tab[1])

        GUIEditor.tab[2] = guiCreateTab("Regulamin"GUIEditor.tabpanel[1])

        GUIEditor.memo[1] = guiCreateMemo(1762999521""falseGUIEditor.tab[2])
        guiMemoSetReadOnly(GUIEditor.memo[1], true)
        GUIEditor.memo[2] = guiCreateMemo(2941344539"                                       REGULAMIN SERWERA                                  "falseGUIEditor.tab[2])
        guiMemoSetReadOnly(GUIEditor.memo[2], true)

        GUIEditor.tab[3] = guiCreateTab("Komendy"GUIEditor.tabpanel[1])

        GUIEditor.label[5] = guiCreateLabel(379229453129"WKR?TCE !"falseGUIEditor.tab[3])
        guiSetFont(GUIEditor.label[5], "sa-header")

        GUIEditor.tab[4] = guiCreateTab("Animacje"GUIEditor.tabpanel[1])

        GUIEditor.label[6] = guiCreateLabel(379229368189"WKR?TCE !"falseGUIEditor.tab[4])
        guiSetFont(GUIEditor.label[6], "sa-header")

        GUIEditor.tab[5] = guiCreateTab("V.I.P"GUIEditor.tabpanel[1])

        GUIEditor.label[7] = guiCreateLabel(15321172992"CHWILOWO BRAK PREMIUM !"falseGUIEditor.tab[5])
        guiSetFont(GUIEditor.label[7], "sa-header")

        GUIEditor.tab[6] = guiCreateTab("Aktualizacje"GUIEditor.tabpanel[1])

        GUIEditor.memo[3] = guiCreateMemo(2524979559"=== 2014-10-02  === AeroX ===\n= Uruchomiono system aktualizacji.\n\n\n\n=== 2014-10-02  === AeroX ===\n= Dodano panel pomocy pod klawiszem F2."falseGUIEditor.tab[6])
        guiMemoSetReadOnly(GUIEditor.memo[3], true)
    end
)

bindKey "f2""down", function()
if guiGetVisible(GUIEditor.window[1]) == false then
guiSetVisible GUIEditor.window[1], true )
showCursor true )
else
guiSetVisible GUIEditor.window[1],false)
showCursor (false)
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-04, 11:25


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Prosz? :


GUIEditor = {
    tab = {},
    tabpanel = {},
    label = {},
    window = {},
    memo = {}
}

        local SCREEN_WIDTHSCREEN_HEIGHT guiGetScreenSize()
        GUIEditor.window[1] = guiCreateWindow(SCREEN_WIDTH 540SCREEN_HEIGHT 339  1080678"PANEL POMOCY"false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.tabpanel[1] = guiCreateTabPanel(23271031617falseGUIEditor.window[1])

        GUIEditor.tab[1] = guiCreateTab("4 LIFE"GUIEditor.tabpanel[1])

        GUIEditor.label[1] = guiCreateLabel(1056330219"Skrypterzy : AeroX"falseGUIEditor.tab[1])
        GUIEditor.label[2] = guiCreateLabel(1054430219"Maperzy : ..."falseGUIEditor.tab[1])
        GUIEditor.label[3] = guiCreateLabel(1052531819"HeadAdministracja : AeroX, Lukasz1393, VectorPL, Marko"falseGUIEditor.tab[1])
        GUIEditor.label[4] = guiCreateLabel(1050630219"W?a?ciciele : AeroX"falseGUIEditor.tab[1])

        GUIEditor.tab[2] = guiCreateTab("Regulamin"GUIEditor.tabpanel[1])

        GUIEditor.memo[1] = guiCreateMemo(1762999521""falseGUIEditor.tab[2])
        guiMemoSetReadOnly(GUIEditor.memo[1], true)
        GUIEditor.memo[2] = guiCreateMemo(2941344539"                                       REGULAMIN SERWERA                                  "falseGUIEditor.tab[2])
        guiMemoSetReadOnly(GUIEditor.memo[2], true)

        GUIEditor.tab[3] = guiCreateTab("Komendy"GUIEditor.tabpanel[1])

        GUIEditor.label[5] = guiCreateLabel(379229453129"WKR?TCE !"falseGUIEditor.tab[3])
        guiSetFont(GUIEditor.label[5], "sa-header")

        GUIEditor.tab[4] = guiCreateTab("Animacje"GUIEditor.tabpanel[1])

        GUIEditor.label[6] = guiCreateLabel(379229368189"WKR?TCE !"falseGUIEditor.tab[4])
        guiSetFont(GUIEditor.label[6], "sa-header")

        GUIEditor.tab[5] = guiCreateTab("V.I.P"GUIEditor.tabpanel[1])

        GUIEditor.label[7] = guiCreateLabel(15321172992"CHWILOWO BRAK PREMIUM !"falseGUIEditor.tab[5])
        guiSetFont(GUIEditor.label[7], "sa-header")

        GUIEditor.tab[6] = guiCreateTab("Aktualizacje"GUIEditor.tabpanel[1])

        GUIEditor.memo[3] = guiCreateMemo(2524979559"=== 2014-10-02  === AeroX ===\n= Uruchomiono system aktualizacji.\n\n\n\n=== 2014-10-02  === AeroX ===\n= Dodano panel pomocy pod klawiszem F2."falseGUIEditor.tab[6])
        guiMemoSetReadOnly(GUIEditor.memo[3], true)


bindKey "f2""down", function()
if guiGetVisible(GUIEditor.window[1]) == false then
guiSetVisible GUIEditor.window[1], true )
showCursor true )
else
guiSetVisible GUIEditor.window[1],false)
showCursor (false)
end
end)


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: gui :: otwieranie :: pod :: klawiszem
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku