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

Wysłany: 2017-08-19, 11:04


Vintage







Wiek: 23
Na forum: 3554 dni
Posty: 64

Piwa: 1

Respekt: 45,8

Witam , chcia?by aby kto? mi pom?g? z markerem , chce zrobi? aby w markerze odpala? si? gui :)


local myBlip createBlip( -2408.05396, -598.43353132.6484451000255myPlayer )


marker createMarker(-2408.11182, -598.66663132.64844'cylinder'2.025500150GUIEditor = {
    button = {},
    window = {},
    label = {}
}

addEventHandler"onMarkerHit"markerMarkerHit ) -- attach onMarkerHit event to MarkerHit function
    function
        GUIEditor.window[1] = guiCreateWindow(538197322338"Beczkow?z"false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.label[2] = guiCreateLabel(957117966"Wymagana Kategoria B"falseGUIEditor.window[1])


        GUIEditor.button[3] = guiCreateButton(60341818298"Rozpocznij Prace"false)    
    end
)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-19, 11:06


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5



local myBlip createBlip( -2408.05396, -598.43353132.6484451000255myPlayer )


marker createMarker(-2408.11182, -598.66663132.64844'cylinder'2.025500150GUIEditor = {
    button = {},
    window = {},
    label = {}
}

addEventHandler"onClientMarkerHit"marker, function(elmd)
    if localPlayer ~= el or not md then return end -- blokada
        GUIEditor.window[1] = guiCreateWindow(538197322338"Beczkow?z"false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.label[2] = guiCreateLabel(957117966"Wymagana Kategoria B"falseGUIEditor.window[1])


        GUIEditor.button[3] = guiCreateButton(60341818298"Rozpocznij Prace"false)    
    end
)

Stwierdzam ?e kod jest po stronie client, poniewa? masz GUI. Prawda?

Postaw piwo autorowi tego posta
 

 
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

Respekt: 45,8

dbn69, prawda po stronie client

[ Dodano: 2017-08-19, 12:44 ]
dbn69, jeszcze pod button chcia?bym podpi?? funkcje ;D

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-19, 12:57


Hades.

Łiiiiiiiiii






Wiek: 22
Na forum: 4699 dni
Posty: 372
Nick w MP: Hades

Piwa: 3214

Respekt: 337,8
Respekt: 337,8Respekt: 337,8Respekt: 337,8

Doda?em ci jeszcze ?e po wyj?ciu z markera znika gui.

Prosz...


local myBlip createBlip( -2408.05396, -598.43353132.6484451000255myPlayer )


marker createMarker(-2408.11182, -598.66663132.64844'cylinder'2.025500150GUIEditor = {
    button = {},
    window = {},
    label = {}
}

addEventHandler"onClientMarkerHit"marker, function(elmd)
    if localPlayer ~= el or not md then return end -- blokada
        GUIEditor.window[1] = guiCreateWindow(538197322338"Beczkow?z"false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.label[2] = guiCreateLabel(957117966"Wymagana Kategoria B"falseGUIEditor.window[1])


        GUIEditor.button[3] = guiCreateButton(60341818298"Rozpocznij Prace"false)    
    end
)

addEventHandler("onClientMarkerLeave"marker, function(elmd)
    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)


Podpis
Skrypty/Grafiki na zamówienie!
Kontakt: Discord R35#5507

Discord związany z pomocą: https://discord.gg/ttkQTsc
Postaw piwo autorowi tego posta
 

 
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

Respekt: 45,8

Damian2511, taki ma?y b??d :(

http://imgur.com/a/WUURd

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-19, 13:15


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5


local myBlip createBlip( -2408.05396, -598.43353132.6484451000255myPlayer )


marker createMarker(-2408.11182, -598.66663132.64844'cylinder'2.025500150GUIEditor = {
    button = {},
    window = {},
    label = {}
}

addEventHandler"onClientMarkerHit"marker, function(elmd)
    if localPlayer ~= el or not md then return end -- blokada
        GUIEditor.window[1] = guiCreateWindow(538197322338"Beczkow?z"false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.label[2] = guiCreateLabel(957117966"Wymagana Kategoria B"falseGUIEditor.window[1])


        GUIEditor.button[3] = guiCreateButton(60341818298"Rozpocznij Prace"false)    
    end
)

addEventHandler("onClientMarkerLeave"marker, function(elmd)
    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 :D

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Vintage
Tagi: marker :: funkcje :: gui
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Marker i funkcje z gui Odpowiedz do tematu

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