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

Wysłany: 2018-07-31, 10:02


MartinPanZycia

Zielony w LUA






Wiek: 27
Na forum: 3729 dni
Posty: 476
Nick w MP: Rodzaje

Piwa: 878

Respekt: 70,5

Ostrzeżeń: 40%
bindKey("mouse1""down", function()
    if not getElementData(localPlayer"gui:listonosz") or getElementData(localPlayer"gui:listonosz") ~= true then return end
    if isMouseIn(404*px447*py227*px38*pythen
        if getElementData(localPlayer"praca"then 
                exports["np-notyfikacje"]:noti("Posiadasz aktywn? prac?!")
return end
        zrobione 0
        triggerServerEvent("create:listonosz"localPlayer)
                exports["np-notyfikacje"]:noti("Rozpoczynasz prac? listonosza")
        showCursor(false)
        setElementData(localPlayer"gui:listonosz"nil)
        setElementData(localPlayer"praca""listonosz")
        for i,v in ipairs(punktyListonosza) do
            local markerList createMarker(v[1], v[2], v[3]-0.9"cylinder"12910 ,100)
            local blipList createBlipAttachedTo(markerList41)
            addEventHandler("onClientMarkerHit"markerList, function(hit)
                if hit ~= localPlayer then return end
                if isPedInVehicle(localPlayerthen 
                outputChatBox("Nie mo?esz siedzie? w poje?dzie!"25500) return end
                zrobione zrobione+1
                destroyElement(source)
                destroyElement(blipList)
                                 exports["np-notyfikacje"]:noti(" wykonano: "..tostring(zrobione).."")
                            local pieniadz math.random(10200)
                          triggerServerEvent("giveMoney"localPlayerpieniadz)
                if zrobione == #punktyListonosza then
                        triggerServerEvent("hajs:listonosz"localPlayer)
                        setElementData(localPlayer"praca"nil)
                    return
                end
            end)
        end
    end
        if isMouseIn(404*px399*py227*px38*pythen
    if isMouseIn(404*px495*py227*px38*pythen
        showCursor(false)
        setElementData(localPlayer"gui:listonosz"nil)
    end
end)


by?a linijka 120 to jest ta na ko?cu

end)


Za pomoc daj? piwka

Podpis
Cześć w MTA jestem jako Rodzaje.
Wszystko jest po staremu nie zamierzam stawiać RPG.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-07-31, 10:08


maciek3286

LUA Developer






Wiek: 26
Na forum: 5201 dni
Posty: 230
Nick w MP: maciek00

Piwa: 3207

Respekt: 101,5
Respekt: 101,5

bindKey("mouse1""down", function()
    if not getElementData(localPlayer"gui:listonosz") or getElementData(localPlayer"gui:listonosz") ~= true then return end
    if isMouseIn(404*px447*py227*px38*pythen
        if getElementData(localPlayer"praca"then 
                exports["np-notyfikacje"]:noti("Posiadasz aktywn? prac?!")
return end
        zrobione 0
        triggerServerEvent("create:listonosz"localPlayer)
                exports["np-notyfikacje"]:noti("Rozpoczynasz prac? listonosza")
        showCursor(false)
        setElementData(localPlayer"gui:listonosz"nil)
        setElementData(localPlayer"praca""listonosz")
        for i,v in ipairs(punktyListonosza) do
            local markerList createMarker(v[1], v[2], v[3]-0.9"cylinder"12910 ,100)
            local blipList createBlipAttachedTo(markerList41)
            addEventHandler("onClientMarkerHit"markerList, function(hit)
                if hit ~= localPlayer then return end
                if isPedInVehicle(localPlayerthen 
                outputChatBox("Nie mo?esz siedzie? w poje?dzie!"25500) return end
                zrobione zrobione+1
                destroyElement(source)
                destroyElement(blipList)
                                 exports["np-notyfikacje"]:noti(" wykonano: "..tostring(zrobione).."")
                            local pieniadz math.random(10200)
                          triggerServerEvent("giveMoney"localPlayerpieniadz)
                if zrobione == #punktyListonosza then
                        triggerServerEvent("hajs:listonosz"localPlayer)
                        setElementData(localPlayer"praca"nil)
                    return
                end
            end
        end
        if isMouseIn(404*px399*py227*px38*pythen
    if isMouseIn(404*px495*py227*px38*pythen
        showCursor(false)
        setElementData(localPlayer"gui:listonosz"nil)
    end
end
end)


[ Dodano: 2018-07-31, 10:08 ]
Spr?buj tak

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
MartinPanZycia
Tagi: loading :: script :: failed :: unexpected :: symbol :: near
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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