Wysłany: 2016-05-15, 11:08
FaydenFX.
Wiek: 27 Na forum: 4056 dni Posty: 246
Nick w MP: faydn
Piwa : 11
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 )
Wysłany: 2016-05-15, 12:06
Xaar
Wiek: 25 Na forum: 5451 dni Posty: 47
Nick w MP: PLWESOLYKOSTEK
Piwa : 82
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
Wysłany: 2016-05-15, 12:12
FaydenFX.
Wiek: 27 Na forum: 4056 dni Posty: 246
Nick w MP: faydn
Piwa : 11
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
Teoretycznie powinno dzia?a? jak nie to pisz.
bindKey ( "lshift" , "both" , function( key , state )
if state == "down" then
if getPedOccupiedVehicle ( localPlayer ) and getPedOccupiedVehicleSeat ( localPlayer ) == 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
Wysłany: 2016-05-15, 12:26
FaydenFX.
Wiek: 27 Na forum: 4056 dni Posty: 246
Nick w MP: faydn
Piwa : 11
Dalej co? nie trybi. db3 nic
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
Mo?e zacznijmy inaczej po jakiej stronie masz ten kod i czy ten kod ma dzia?a? tylko kierowcy czy ka?demu w aucie ?
Wysłany: 2016-05-15, 12:31
FaydenFX.
Wiek: 27 Na forum: 4056 dni Posty: 246
Nick w MP: faydn
Piwa : 11
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
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
Sprawd? teraz.
bindKey ( "lshift" , "both" , function( key , state )
if getPedOccupiedVehicle ( localPlayer ) and getPedOccupiedVehicleSeat ( localPlayer ) == 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
Wysłany: 2016-05-15, 12:40
FaydenFX.
Wiek: 27 Na forum: 4056 dni Posty: 246
Nick w MP: faydn
Piwa : 11
dzia?a, teraz pobugowane klawisze strasznie (przy przewijaniu interakcji)
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
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 getPedOccupiedVehicleSeat ( localPlayer ) == 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
Wysłany: 2016-05-15, 12:55
FaydenFX.
Wiek: 27 Na forum: 4056 dni Posty: 246
Nick w MP: faydn
Piwa : 11
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
Samo ukrywanie hud mi dzia?a. sprawd? to :
bindKey ( "lshift" , "both" , function( key , state )
if getPedOccupiedVehicle ( localPlayer ) and getPedOccupiedVehicleSeat ( localPlayer ) == 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 )
Ostatnio zmieniony przez Emm 2016-05-15, 13:02, w całości zmieniany 1 raz
Wysłany: 2016-05-15, 13:02
FaydenFX.
Wiek: 27 Na forum: 4056 dni Posty: 246
Nick w MP: faydn
Piwa : 11
mi nic nie dziala i tyle.
[ Dodano : 2016-05-15, 13:03 ]
Oooo! Dzia?a! Dzi?kuje! Leci piwko i respekt!
Tagi: pokazywanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: