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

Wysłany: 2014-02-02, 17:04


xHardus







Wiek: 27
Na forum: 4786 dni
Posty: 90
Nick w MP: Harduś

Piwa: 786

Respekt: 15,3

Cze?? Ponownie mam znow nowy problem :
Nie chce sie pojawic gui w markerze kod :

blip1 createBlip 2334 ,19 ,27 ,45)

sklep createMarker 23341926"cylinder"125500150 )



GUIEditor = {
    button = {},
    window = {}
}
GUIEditor.window[1] = guiCreateWindow(429357398313"Przebieralnia"false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
CJ guiCreateButton(143013157"Skin 1"falseGUIEditor.window[1])
Trutch guiCreateButton(1410813160"Skin 2"falseGUIEditor.window[1])
Maccer guiCreateButton(1419913059"Skin 3"falseGUIEditor.window[1])
Cosual guiCreateButton(1613111656"Skin 4"falseGUIEditor.window[1])
Busines guiCreateButton(16211011558"Skin 5"falseGUIEditor.window[1])
Card guiCreateButton(16119911657"Skin 6"falseGUIEditor.window[1])

function okno(hitElementmatchingDiemnsion)
if hitElement == getLocalPlayer() then
if source == sklep then
guiSetVisible (shop,false)
showCursor (false)
end
end
end
addEventHandler ("onClientMarkerLeave"sklepokno)

addEventHandler ("onClientGUIClick"getRootElement(), 
function(buttonstateabsoluteXabsoluteY)
if ( source ==  CJ then 
triggerServerEvent("CJ",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick"getRootElement(), 
function(buttonstateabsoluteXabsoluteY)
if ( source ==  Trutch then 
triggerServerEvent("Trutch",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick"getRootElement(), 
function(buttonstateabsoluteXabsoluteY)
if ( source ==  Maccer then 
triggerServerEvent("Maccer",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick"getRootElement(), 
function(buttonstateabsoluteXabsoluteY)
if ( source ==  Cosual then 
triggerServerEvent("Cosual",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick"getRootElement(), 
function(buttonstateabsoluteXabsoluteY)
if ( source ==  Busines then 
triggerServerEvent("Busines",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick"getRootElement(), 
function(buttonstateabsoluteXabsoluteY)
if ( source ==  Card then 
triggerServerEvent("Card",getLocalPlayer()) 
end 
end)



Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 3 piw(a):
Mezo., psychol., Takoot21
Wysłany: 2014-02-02, 17:19


Novovix

xNinja powraca






Wiek: 26
Na forum: 4870 dni
Posty: 240
Nick w MP: xNinja

Piwa: 452

Respekt: 80,5

Dodaj ten kod nawet na samym ko?cu! :) Licz? na piwko :)
function okno(hitElementmatchingDiemnsion)
if hitElement == getLocalPlayer() then
if source == sklep then
guiSetVisible (GUIEditor.window[1],true)
showCursor (true)
end
end
end
addEventHandler ("onClientMarkerHit"sklepokno)


Licze na piwko :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-02-02, 18:02


xHardus







Wiek: 27
Na forum: 4786 dni
Posty: 90
Nick w MP: Harduś

Piwa: 786

Respekt: 15,3

a

function wyjdz()
if source == sklep then
guiSetVisible (oknofalse)
showCursor (false)
end
addEventHandler ("onClientMarkerLeave"sklepwyjdz)

Dobrze napisa?em ?

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
psychol.
Wysłany: 2014-02-02, 20:04


Novovix

xNinja powraca






Wiek: 26
Na forum: 4870 dni
Posty: 240
Nick w MP: xNinja

Piwa: 452

Respekt: 80,5

Zr?b tak:

function okno(hitElementmatchingDiemnsion)
if hitElement == getLocalPlayer() then
if source == wyjdz then
guiSetVisible (nazwa_okna,false)
showCursor (false)
end
end
end
addEventHandler ("onClientGUIClick"wyjdznazwa_okna)

Licz? na kolejne piwko :)

Postaw piwo autorowi tego posta
 

 
Tagi: skin :: shop
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