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

Wysłany: 2015-08-20, 18:49


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Witajcie siema, chcia? bym zrobi? skrypt na wybieranie teamu przez GUI narazie mam tylko gui pomo?e kto? ?


GUI

--[[-------------------------------------------------
Notes:

> This code is using a relative image filepathThis will only work as long as the location it is from always exists, and the resource it is part of is running.
    To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there.
--]]-------------------------------------------------


GUIEditor = {
    button = {},
    staticimage = {},
    window = {},
    radiobutton = {}
}
addEventHandler("onClientResourceStart"resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(630339718584"Wybierz team"false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(1451819756"Akceptuj"falseGUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour""FFAAAAAA")
        GUIEditor.radiobutton[1] = guiCreateRadioButton(345419830"Grove Street"falseGUIEditor.window[1])
        GUIEditor.radiobutton[2] = guiCreateRadioButton(3413519830"Ballas"falseGUIEditor.window[1])
        guiRadioButtonSetSelected(GUIEditor.radiobutton[2], true)
        GUIEditor.radiobutton[3] = guiCreateRadioButton(349220033"Vagos"falseGUIEditor.window[1])
        GUIEditor.radiobutton[4] = guiCreateRadioButton(3417519429"Aztec"falseGUIEditor.window[1])
        GUIEditor.staticimage[1] = guiCreateStaticImage(48764209170":guieditor/images/examples/mtalogo.png"falseGUIEditor.window[1])    
    end
)

Za pomoc ::piwo::

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-20, 19:48


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

Więcej informacji znajdziesz w Wikipedii MTA:

onClientGUIClick



Więcej informacji znajdziesz w Wikipedii MTA:

triggerServerEvent


Więcej informacji znajdziesz w Wikipedii MTA:

setPlayerTeam


Postaw piwo autorowi tego posta
 

 
Tagi: team
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