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

Wysłany: 2017-03-22, 17:04


toMiXgaming







Wiek: 24
Na forum: 3369 dni
Posty: 15
Nick w MP: toMiXgaming

Piwa: 2

Respekt: 50

Tak jak w tytule, pr?b?je zrobi? zeby marker by? za pojazdem nawet w ruchu. Chcia?em u?y? attachElements ale nie dzia?a
Tak to uzupe?ni?em


   attachElements markerboot_dummy0 00)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-22, 18:30


Luqas

.lua <3






Wiek: 25
Na forum: 3455 dni
Posty: 84
Nick w MP: Luqas

Piwa: 10

Respekt: 80

1. Da?e? zerowe koordynaty, wi?c mo?liwe ?e marker jest w ?rodku pojazdu i go poprostu nie widzisz ;)
2. Daj ca?y kod, b??d mo?e le?e? gdzie indziej.

Podpis
Pomogłem? Postaw Piwo lub/i respekt ^^


 Mój Youtube (klik)
Moje skrypty:
- Pay'n'Spray -

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-22, 19:06


toMiXgaming







Wiek: 24
Na forum: 3369 dni
Posty: 15
Nick w MP: toMiXgaming

Piwa: 2

Respekt: 50


local markerstart createMarker 1941.182168.429.82,"cylinder",1,255,255,255)

GUIEditor = {
    button = {},
    window = {},
    memo = {}
}

addEventHandler("onClientResourceStart"resourceRoot,
    function()
        okno guiCreateWindow(1058245298513"Kurier"false)
        guiWindowSetSizable(oknofalse)

        memo guiCreateLabel(933279297"Praca kuriera polega na rozwo?eniu paczek do klient?w, aby dosta? wyp??te musisz rozwie?? minimum 5 paczek"falseokno)
        guiLabelSetHorizontalAlign(memo"left"true)    
        zatrudnij guiCreateButton(1134027744"Zatrudnij si?"falseokno)
        zwolnij guiCreateButton(1139427744"Zwolnij si?"falseokno)
        wroc guiCreateButton(1144827755"Wr??"falseokno)    
    end 
)
addEventHandler("onClientResourceStart"resourceRoot,        
    function()
                guiSetVisible(oknofalse)
            guiSetVisible(memofalse)
            guiSetVisible(zatrudnij,false)
            guiSetVisible(zwolnij,false)
            guiSetVisible(wrocfalse)
            showCursor(false)
    end
)

addEventHandler("onClientMarkerHit",markerstart,function(el,md)
        if not md or el~=localPlayer then return end
            guiSetVisible(oknotrue)
             guiSetVisible(memotrue)
             guiSetVisible(zatrudnijtrue)
             guiSetVisible(zwolnijtrue)
             guiSetVisible(wroctrue)
             showCursor(true)
end)

    
    function wylaczoknopraca()
    if source == wroc then
             guiSetVisible(oknofalse)
             guiSetVisible(memofalse)
             guiSetVisible(zatrudnijfalse)
             guiSetVisible(zwolnijfalse)
             guiSetVisible(wrocfalse)
             showCursor(false)
    end
end
addEventHandler("onClientGUIClick"rootwylaczoknopraca)

marker nil

addEventHandler("onClientVehicleExit"root, function(plrseat)
    if seat == 0 then
        if praca == 1 then
local x,y,getVehicleComponentPosition(source"boot_dummy""world")
    marker createMarker(x,y,z"cylinder"3.025500150)
        attachElements markerboot_dummy-20)
end
end
end)

addEventHandler("onClientVehicleEnter"root, function(plrseat)
if seat == 0 then
if marker and isElement(markerthen
destroyElement(marker)
end
end
end)

    function startpraca()
    if source == zatrudnij then
        praca 1
        outputChatBox("Rozpoczo?e? prace"source)
    end
end
addEventHandler("onClientGUIClick"rootstartpraca)

Tu jeszcze mam problem ze jak zrobi?em onGUIClick startpraca to prawdopodobnie nie moze znalesc buttona
Marker sie pojawia ale nie pod??a za pojazdem

[ Dodano: 2017-03-25, 10:50 ]
Kto? co? pomorze?

Postaw piwo autorowi tego posta
 

 
Tagi: marker :: pojazdem
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 za pojazdem 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