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

Wysłany: 2016-05-15, 11:08


FaydenFX.







Wiek: 27
Na forum: 4056 dni
Posty: 246
Nick w MP: faydn

Piwa: 11

Respekt: 45,3

witam, gdy nie jestem w pojezdzie takze pokazuje mi sie shader , ukrywa mi hud. Jak zrobic zeby bylo tylko w pojezdzie?

kod:
bindKey("lshift""both", function(key,state)
    if state == "down" then
        akcja(true)
        showChat(false)
        setElementData localPlayer"shader"true )
        setPlayerHudComponentVisible "all"false ) 
        setElementData(localPlayer,"wybierajInterakcja",6)
    elseif state == "up" then
        akcja(false)
                wybieraj()
        showChat(true)
        setElementData localPlayer"shader"false )
        setPlayerHudComponentVisible "all"true ) 
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:06


Xaar







Wiek: 25
Na forum: 5450 dni
Posty: 47
Nick w MP: PLWESOLYKOSTEK

Piwa: 82

Respekt: 60

bindKey("lshift""both", function(key,state)
    if state == "down" then
    if getPedOccupiedVehicle localPlayer ) and seat == 0 then
        akcja(true)
        showChat(false)
        setElementData localPlayer"shader"true )
        setPlayerHudComponentVisible "all"false ) 
        setElementData(localPlayer,"wybierajInterakcja",6)
    elseif state == "up" then
        akcja(false)
                wybieraj()
        showChat(true)
        setElementData localPlayer"shader"false )
        setPlayerHudComponentVisible "all"true ) 
    end
      


Spr?buj to, nie wiem czy b?dzie dzia?a?, je?eli nie, napisz tutaj. Tak?e jestem amator w lua. Wsp?lnie damy rad?. :)

Ostatnio zmieniony przez Xaar 2016-05-15, 12:31, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:12


FaydenFX.







Wiek: 27
Na forum: 4056 dni
Posty: 246
Nick w MP: faydn

Piwa: 11

Respekt: 45,3

nie trybi

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:19


Daisu

Programista Lua






Wiek: 26
Na forum: 4444 dni
Posty: 193
SPONSOR
Nick w MP: Daisu

Piwa: 24

Respekt: 90

Teoretycznie powinno dzia?a? jak nie to pisz.

bindKey("lshift""both", function(key,state)
    if state == "down" then
    if getPedOccupiedVehicle localPlayer ) and getPedOccupiedVehicleSeatlocalPlayer ) == 0 then
        akcja(true)
        showChat(false)
        setElementData localPlayer"shader"true )
        setPlayerHudComponentVisible "all"false ) 
        setElementData(localPlayer,"wybierajInterakcja",6)
    elseif state == "up" then
        akcja(false)
                wybieraj()
        showChat(true)
        setElementData localPlayer"shader"false )
        setPlayerHudComponentVisible "all"true ) 
    end
        akcja(true)
        showChat(false)
        setElementData localPlayer"shader"true )
        setPlayerHudComponentVisible "all"false ) 
        setElementData(localPlayer,"wybierajInterakcja",6)
    elseif state == "up" then
        akcja(false)
                wybieraj()
        showChat(true)
        setElementData localPlayer"shader"false )
        setPlayerHudComponentVisible "all"true ) 
    end


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:26


FaydenFX.







Wiek: 27
Na forum: 4056 dni
Posty: 246
Nick w MP: faydn

Piwa: 11

Respekt: 45,3

Dalej co? nie trybi. db3 nic :/

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:28


Daisu

Programista Lua






Wiek: 26
Na forum: 4444 dni
Posty: 193
SPONSOR
Nick w MP: Daisu

Piwa: 24

Respekt: 90

Mo?e zacznijmy inaczej po jakiej stronie masz ten kod i czy ten kod ma dzia?a? tylko kierowcy czy ka?demu w aucie ?

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:31


FaydenFX.







Wiek: 27
Na forum: 4056 dni
Posty: 246
Nick w MP: faydn

Piwa: 11

Respekt: 45,3

kierowcy, wszystko dziala lecz jak nie jestem w pojezdzie i nacisne ten klawisz to pokazuje mi ten shader i ukrywa hud, a ja chcem tak zrobic ze tylko w pojezdzie jak nacisne .

strona c-side

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:36


Daisu

Programista Lua






Wiek: 26
Na forum: 4444 dni
Posty: 193
SPONSOR
Nick w MP: Daisu

Piwa: 24

Respekt: 90

Sprawd? teraz.



bindKey("lshift""both", function(key,state)
    if getPedOccupiedVehicle localPlayer ) and getPedOccupiedVehicleSeatlocalPlayer ) == 0 then
        if state == "down" then
            akcja(true)
            showChat(false)
            setElementData localPlayer"shader"true )
            setPlayerHudComponentVisible "all"false ) 
            setElementData(localPlayer,"wybierajInterakcja",6)
        elseif state == "up" then
            akcja(false)
                    wybieraj()
            showChat(true)
            setElementData localPlayer"shader"false )
            setPlayerHudComponentVisible "all"true ) 
        end
            akcja(true)
            showChat(false)
            setElementData localPlayer"shader"true )
            setPlayerHudComponentVisible "all"false ) 
            setElementData(localPlayer,"wybierajInterakcja",6)
        elseif state == "up" then
            akcja(false)
                    wybieraj()
            showChat(true)
            setElementData localPlayer"shader"false )
            setPlayerHudComponentVisible "all"true ) 
        end
    end
end



Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:40


FaydenFX.







Wiek: 27
Na forum: 4056 dni
Posty: 246
Nick w MP: faydn

Piwa: 11

Respekt: 45,3

dzia?a, teraz pobugowane klawisze strasznie (przy przewijaniu interakcji)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:47


Daisu

Programista Lua






Wiek: 26
Na forum: 4444 dni
Posty: 193
SPONSOR
Nick w MP: Daisu

Piwa: 24

Respekt: 90

Nw czy ci teraz ci czego? nie popsu?em ale moim zdaniem kod powinien by? taki bo to co usun??em to by?o to samo co zosta?o.



bindKey("lshift""both", function(key,state)
    if getPedOccupiedVehicle localPlayer ) and getPedOccupiedVehicleSeatlocalPlayer ) == 0 then
        if state == "down" then
            akcja(true)
            showChat(false)
            setElementData localPlayer"shader"true )
            setPlayerHudComponentVisible "all"false ) 
            setElementData(localPlayer,"wybierajInterakcja",6)
        elseif state == "up" then
            akcja(false)
            wybieraj()
            showChat(true)
            setElementData localPlayer"shader"false )
            setPlayerHudComponentVisible "all"true ) 
        end
    end
end



Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:55


FaydenFX.







Wiek: 27
Na forum: 4056 dni
Posty: 246
Nick w MP: faydn

Piwa: 11

Respekt: 45,3

nie dziala i tyle :C

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 12:58


Daisu

Programista Lua






Wiek: 26
Na forum: 4444 dni
Posty: 193
SPONSOR
Nick w MP: Daisu

Piwa: 24

Respekt: 90

Samo ukrywanie hud mi dzia?a. sprawd? to :

bindKey("lshift""both", function(key,state)
    if getPedOccupiedVehicle localPlayer ) and getPedOccupiedVehicleSeatlocalPlayer ) == 0 then
        if state == "down" then
            akcja(true)
            showChat(false)
            setElementData localPlayer"shader"true )
            setPlayerHudComponentVisible "all"false ) 
            setElementData(localPlayer,"wybierajInterakcja",6)
        elseif state == "up" then
            akcja(false)
            wybieraj()
            showChat(true)
            setElementData localPlayer"shader"false )
            setPlayerHudComponentVisible "all"true ) 
        end
    end
end)


Podpis
Ostatnio zmieniony przez Emm 2016-05-15, 13:02, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-05-15, 13:02


FaydenFX.







Wiek: 27
Na forum: 4056 dni
Posty: 246
Nick w MP: faydn

Piwa: 11

Respekt: 45,3

mi nic nie dziala i tyle.

[ Dodano: 2016-05-15, 13:03 ]
Oooo! Dzia?a! Dzi?kuje! Leci piwko i respekt!

Postaw piwo autorowi tego posta
 

 
Tagi: pokazywanie
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