Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LUA/ Pomoc w skrypcie
#1
Witajcie, mam problem w języku LUA. Ogólnie to chciałem napisać skrypt po którym po kliknięciu klawisza "F9" Otwierałaby mi się textura i tym samym klawiszem mógłbym ją zamknąć.
Po kliknięciu "F9" Texturka pojawia się normalnie, ale niestety gdy chce ją już zamknąć to nic się nie dzieje. Pomożecie? :b

Code:
function OnGamemodeInit()
Enable_OnPlayerKey(1)
end

function OnPlayerKey(playerid, key_wl, key_wyl)
        if key_wl == KEY_F9 then
        local gui = CreateTexture(500,300,8000,7500,"Frame_GMPA.TGA");
            ShowTexture(playerid,gui);
        
        elseif key_wyl == KEY_F9 then
        Enable_OnPlayerKey(0);
        local key_wyl = HideTexture(playerid,gui);
        HideTexture(playerid, key_wyl);
    end
end

Załączam również zdjęcie jak to wygląda: 
https://zapodaj.net/images/83a3d07ac6d81.png
Reply


Messages In This Thread
LUA/ Pomoc w skrypcie - by Fevelar - 21.10.2018, 18:14
RE: LUA/ Pomoc w skrypcie - by Hades - 21.10.2018, 19:23
RE: LUA/ Pomoc w skrypcie - by Patrix - 21.10.2018, 19:26
RE: LUA/ Pomoc w skrypcie - by Hades - 21.10.2018, 19:29
RE: LUA/ Pomoc w skrypcie - by Profesores - 21.10.2018, 19:32
RE: LUA/ Pomoc w skrypcie - by Fevelar - 21.10.2018, 19:53

Possibly Related Threads…
Thread Author Replies Views Last Post
  Nauczyciele squirrela albo lua Liberal 8 7,036 12.04.2018, 23:15
Last Post: Spray
  Pomoc w stworzeniu GM Karpas 33 24,551 29.05.2016, 15:43
Last Post: Quarchodron
  Pomoc w serwerze Gooby 8 6,393 21.04.2016, 23:37
Last Post: Gooby
  Pomoc CursePL 2 2,774 22.01.2016, 19:05
Last Post: CursePL
  Pomoc 424531 0 1,518 01.01.2016, 21:00
Last Post: 424531
  Pomoc z Zpackiem Mord 2 2,583 10.10.2015, 11:58
Last Post: Sative

Forum Jump:


Users browsing this thread: 1 Guest(s)