Wysłany: 2017-08-19, 11:04
Vintage
Wiek: 23 Na forum: 3554 dni Posty: 64
Piwa : 1
Witam , chcia?by aby kto? mi pom?g? z markerem , chce zrobi? aby w markerze odpala? si? gui
local myBlip = createBlip ( - 2408.05396 , - 598.43353 , 132.64844 , 51 , 0 , 0 , 0 , 255 , myPlayer )
marker = createMarker (- 2408.11182 , - 598.66663 , 132.64844 , 'cylinder' , 2.0 , 255 , 0 , 0 , 150 )
GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler ( "onMarkerHit" , marker , MarkerHit ) -- attach onMarkerHit event to MarkerHit function
function
GUIEditor . window [ 1 ] = guiCreateWindow ( 538 , 197 , 322 , 338 , "Beczkow?z" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
GUIEditor . label [ 2 ] = guiCreateLabel ( 95 , 71 , 179 , 66 , "Wymagana Kategoria B" , false , GUIEditor . window [ 1 ])
GUIEditor . button [ 3 ] = guiCreateButton ( 603 , 418 , 182 , 98 , "Rozpocznij Prace" , false )
end
)
Wysłany: 2017-08-19, 11:06
neku^
Wiek: 24 Na forum: 3521 dni Posty: 461
Nick w MP: neku^
Piwa : 1186
local myBlip = createBlip ( - 2408.05396 , - 598.43353 , 132.64844 , 51 , 0 , 0 , 0 , 255 , myPlayer )
marker = createMarker (- 2408.11182 , - 598.66663 , 132.64844 , 'cylinder' , 2.0 , 255 , 0 , 0 , 150 )
GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler ( "onClientMarkerHit" , marker , function( el , md )
if localPlayer ~= el or not md then return end -- blokada
GUIEditor . window [ 1 ] = guiCreateWindow ( 538 , 197 , 322 , 338 , "Beczkow?z" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
GUIEditor . label [ 2 ] = guiCreateLabel ( 95 , 71 , 179 , 66 , "Wymagana Kategoria B" , false , GUIEditor . window [ 1 ])
GUIEditor . button [ 3 ] = guiCreateButton ( 603 , 418 , 182 , 98 , "Rozpocznij Prace" , false )
end
)
Stwierdzam ?e kod jest po stronie client, poniewa? masz GUI. Prawda?
Więcej szczegółów
Wystawiono 1 piw(a):Vintage
Wysłany: 2017-08-19, 12:38
Vintage
Wiek: 23 Na forum: 3554 dni Posty: 64
Piwa : 1
dbn69 , prawda po stronie client
[ Dodano : 2017-08-19, 12:44 ]
dbn69 , jeszcze pod button chcia?bym podpi?? funkcje ;D
Wysłany: 2017-08-19, 12:57
Hades.
Łiiiiiiiiii
Wiek: 22 Na forum: 4699 dni Posty: 372
Nick w MP: Hades
Piwa : 3214
Doda?em ci jeszcze ?e po wyj?ciu z markera znika gui.
Prosz...
local myBlip = createBlip ( - 2408.05396 , - 598.43353 , 132.64844 , 51 , 0 , 0 , 0 , 255 , myPlayer )
marker = createMarker (- 2408.11182 , - 598.66663 , 132.64844 , 'cylinder' , 2.0 , 255 , 0 , 0 , 150 )
GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler ( "onClientMarkerHit" , marker , function( el , md )
if localPlayer ~= el or not md then return end -- blokada
GUIEditor . window [ 1 ] = guiCreateWindow ( 538 , 197 , 322 , 338 , "Beczkow?z" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
GUIEditor . label [ 2 ] = guiCreateLabel ( 95 , 71 , 179 , 66 , "Wymagana Kategoria B" , false , GUIEditor . window [ 1 ])
GUIEditor . button [ 3 ] = guiCreateButton ( 603 , 418 , 182 , 98 , "Rozpocznij Prace" , false )
end
)
addEventHandler ( "onClientMarkerLeave" , marker , function( el , md )
if localPlayer ~= el or not md then return end
if guiGetVisible ( GUIEditor . window [ 1 ]) == true then
guiSetVisible ( GUIEditor . window [ 1 ], false )
guiSetVisible ( GUIEDitor . button [ 3 ], false )
end
end )
addEventHandler ( "onClientGUIClick" , GUIEditor . button [ 3 ], function( btn , state )
if btn == "left" and state == "down" then
-- tu funkcje sb wypelnij
end
end )
Więcej szczegółów
Wystawiono 1 piw(a):Vintage
Wysłany: 2017-08-19, 13:00
Vintage
Wiek: 23 Na forum: 3554 dni Posty: 64
Piwa : 1
Wysłany: 2017-08-19, 13:15
neku^
Wiek: 24 Na forum: 3521 dni Posty: 461
Nick w MP: neku^
Piwa : 1186
local myBlip = createBlip ( - 2408.05396 , - 598.43353 , 132.64844 , 51 , 0 , 0 , 0 , 255 , myPlayer )
marker = createMarker (- 2408.11182 , - 598.66663 , 132.64844 , 'cylinder' , 2.0 , 255 , 0 , 0 , 150 )
GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler ( "onClientMarkerHit" , marker , function( el , md )
if localPlayer ~= el or not md then return end -- blokada
GUIEditor . window [ 1 ] = guiCreateWindow ( 538 , 197 , 322 , 338 , "Beczkow?z" , false )
guiWindowSetSizable ( GUIEditor . window [ 1 ], false )
GUIEditor . label [ 2 ] = guiCreateLabel ( 95 , 71 , 179 , 66 , "Wymagana Kategoria B" , false , GUIEditor . window [ 1 ])
GUIEditor . button [ 3 ] = guiCreateButton ( 603 , 418 , 182 , 98 , "Rozpocznij Prace" , false )
end
)
addEventHandler ( "onClientMarkerLeave" , marker , function( el , md )
if localPlayer ~= el or not md then return end
if guiGetVisible ( GUIEditor . window [ 1 ]) == true then
guiSetVisible ( GUIEditor . window [ 1 ], false )
guiSetVisible ( GUIEditor . button [ 3 ], false )
end
end )
addEventHandler ( "onClientGUIClick" , GUIEditor . button [ 3 ], function( btn , state )
if btn == "left" and state == "down" then
-- tu funkcje sb wypelnij
end
end )
Prosz? bardzo
Więcej szczegółów
Wystawiono 1 piw(a):Vintage
Tagi: marker :: funkcje :: gui
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: