Wysłany: 2014-02-02, 17:04
xHardus
Wiek: 27 Na forum: 4787 dni Posty: 90
Nick w MP: Harduś
Piwa : 786
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 )
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
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
Wysłany: 2014-02-02, 18:02
xHardus
Wiek: 27 Na forum: 4787 dni Posty: 90
Nick w MP: Harduś
Piwa : 786
a
function wyjdz ()
if source == sklep then
guiSetVisible ( okno , false )
showCursor ( false )
end
addEventHandler ( "onClientMarkerLeave" , sklep , wyjdz )
Dobrze napisa?em ?
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
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
Tagi: skin :: shop
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: