Code:
function OnGamemodeInit()
Enable_OnPlayerKey(1)
end
local gui = CreateTexture(500,300,8000,7500,"Frame_GMPA.TGA");
local bool = false;
function OnPlayerKey(playerid, key)
if key == KEY_F9 then
if not bool then
ShowTexture(playerid, gui);
else
HideTexture(playerid, gui);
end
bool = bool not bool
end
end
Tak chyba działało to LUA
Tak w ogóle, to każdy gracz będzie miał taką samą wartość bool.
Na początek sugerowałbym uświadomić sobie, że to nie ta platforma, i tutaj jest język Squirrel.
![[Image: dvdsvpx.gif]](http://i.imgur.com/dvdsvpx.gif)