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: 28
Na forum: 4927 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 ( 2334, 19, 26, "cylinder", 1, 255, 0, 0, 150 )



GUIEditor = {
    button = {},
    window = {}
}
GUIEditor.window[1] = guiCreateWindow(429, 357, 398, 313, "Przebieralnia", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
CJ = guiCreateButton(14, 30, 131, 57, "Skin 1", false, GUIEditor.window[1])
Trutch = guiCreateButton(14, 108, 131, 60, "Skin 2", false, GUIEditor.window[1])
Maccer = guiCreateButton(14, 199, 130, 59, "Skin 3", false, GUIEditor.window[1])
Cosual = guiCreateButton(161, 31, 116, 56, "Skin 4", false, GUIEditor.window[1])
Busines = guiCreateButton(162, 110, 115, 58, "Skin 5", false, GUIEditor.window[1])
Card = guiCreateButton(161, 199, 116, 57, "Skin 6", false, GUIEditor.window[1])

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

addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY)
if ( source ==  CJ ) then 
triggerServerEvent("CJ",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY)
if ( source ==  Trutch ) then 
triggerServerEvent("Trutch",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY)
if ( source ==  Maccer ) then 
triggerServerEvent("Maccer",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY)
if ( source ==  Cosual ) then 
triggerServerEvent("Cosual",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY)
if ( source ==  Busines ) then 
triggerServerEvent("Busines",getLocalPlayer()) 
end 
end)
addEventHandler ("onClientGUIClick", getRootElement(), 
function(button, state, absoluteX, absoluteY)
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: 5011 dni
Posty: 240
Nick w MP: xNinja

Piwa: 453

Respekt: 80,5

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


Licze na piwko :)

Postaw piwo autorowi tego posta
 

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


xHardus







Wiek: 28
Na forum: 4927 dni
Posty: 90
Nick w MP: Harduś

Piwa: 786

Respekt: 15,3

a

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

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: 5011 dni
Posty: 240
Nick w MP: xNinja

Piwa: 453

Respekt: 80,5

Zr?b tak:

function okno(hitElement, matchingDiemnsion)
if hitElement == getLocalPlayer() then
if source == wyjdz then
guiSetVisible (nazwa_okna,false)
showCursor (false)
end
end
end
addEventHandler ("onClientGUIClick", wyjdz, nazwa_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 » Skin shop 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