Jump to content

papam77

Members
  • Posts

    517
  • Joined

  • Last visited

Everything posted by papam77

  1. WARNING: editor_test\client.lua:15: Bad argument @ 'createProjectile'
  2. Still, it doesn't shoot rockets
  3. function mapa () rocket = createMarker ( 3412.8688964844, -1652.7664794922, 13.254596710205 ) setMarkerSize ( rocket, 5 ) function MarkerHit (element) if (element == getLocalPlayer()) then if (getElementType(element) == "player") then if (isPedInVehicle(element)) then if (source==rocket) then outputChatBox ("#ff9900WARNING!", 255,255,255, true ) createProjectile ( RocketLauncher1, "58", 3440.1625976563, -1543.6124267578, 32.850193023682, 1.0, nil, 3514.0498046875, -1665.0322265625, 18.988582611084, 0, 0, 0 ) end end end end end addEventHandler ( "onClientMarkerHit", getRootElement() ,MarkerHit) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), mapa ) Hello guys why this projectiles doesn't work? When i hit marker nothing happend :C
  4. I guess for Login Panel createLoginWindow() 99% for login
  5. Hello i wanna make Multi-Gamemode, but i need some tips how can connect gamemodes and etc... Ofc i will need main gamemode Lobby so will be type="gamemode" and what i must do as next? What i must edit in race and etc...?
  6. I made this: client: local bg = { ["bg"] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/bg.png", true) } for _,gui in pairs(bg)do guiSetVisible(gui,false) end guiSetEnabled (bg["bg"], false ) local ikony = { ["dd"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/dd.png", true), -- Obdélník ["drift"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/drift.png", true), -- Čtverec ["parkour"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/parkour.png", true), -- Čtverec ["trials"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/trials.png", true), -- Čtverec ["shooter"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/shooter.png", true), -- Čtverec ["dm"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/dm.png", true), -- Obdélník ["hunter"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/hunter.png", true), -- Obdélník ["zombie"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/zombie.png", true), -- Obdélník ["slender"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/slender.png", true), -- Obdélník ["race"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/race.png", true), -- Obdélník ["counterstrike"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/counterstrike.png", true), -- Obdélník } for _,image in pairs(ikony)do guiSetAlpha(image,0.75) end for _,gui in pairs(ikony)do guiSetVisible(gui,false) end local labely = { ["hraci"] = guiCreateLabel(0.00, 0.85, 1.00, 0.14, "Players: ".. tostring( #getElementsByType( "player" ) ), true) } local font2 = guiCreateFont( "lithos.ttf", 50 ) guiSetFont( labely["hraci"], font2 ) guiLabelSetHorizontalAlign(labely["hraci"], "center", false) guiLabelSetVerticalAlign(labely["hraci"], "center") for _,gui in pairs(labely)do guiSetVisible(gui,false) end --[[guiSetAlpha (ikony["dd"], 0.75 ) guiSetAlpha (ikony["drift"], 0.75 ) guiSetAlpha (ikony["parkour"], 0.75 ) guiSetAlpha (ikony["trials"], 0.75 ) guiSetAlpha (ikony["shooter"], 0.75 ) guiSetAlpha (ikony["dm"], 0.75 ) guiSetAlpha (ikony["hunter"], 0.75 ) guiSetAlpha (ikony["zombie"], 0.75 ) guiSetAlpha (ikony["slender"], 0.75 ) guiSetAlpha (ikony["race"], 0.75 ) guiSetAlpha (ikony["counterstrike"], 0.75 )]] addEventHandler ( "onClientMouseEnter", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end) addEventHandler ( "onClientMouseLeave", root,function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end) local visible = false addEvent( "lobby", true, addEventHandler( "lobby", getRootElement(), lobby, bindKey ("F1", "down",function() visible = not visible showCursor ( visible ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, visible ) end end))) addEventHandler ( "onClientGUIClick", ikony["dm"], function(button) if button ~= "left" then return end showCursor ( false ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( bg ) do guiSetVisible ( gui, not visible ) end end, false ) server addEventHandler ("onPlayerJoin", root, function() triggerClientEvent ( "lobby", getRootElement()) end) And it doesn't work when i join, why?
  7. I need it because when i join i need to show it.
  8. And how can make it with onPlayerJoin ? Because it hasn't function with name.
  9. ofc yes, but it is showing me when i start resource, i don't want it..
  10. function lobby () showCursor ( true ) local bg = { ["bg"] = guiCreateStaticImage(0.00, 0.00, 1.00, 1.00, "img/bg.png", true) } guiSetEnabled (bg["bg"], false ) local ikony = { ["dd"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/dd.png", true), -- Obdélník ["drift"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/drift.png", true), -- Čtverec ["parkour"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/parkour.png", true), -- Čtverec ["trials"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/trials.png", true), -- Čtverec ["shooter"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/shooter.png", true), -- Čtverec ["dm"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/dm.png", true), -- Obdélník ["hunter"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/hunter.png", true), -- Obdélník ["zombie"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/zombie.png", true), -- Obdélník ["slender"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/slender.png", true), -- Obdélník ["race"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/race.png", true), -- Obdélník ["counterstrike"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/counterstrike.png", true), -- Obdélník } local labely = { ["hraci"] = guiCreateLabel(0.00, 0.85, 1.00, 0.14, "Players: ".. tostring( #getElementsByType( "player" ) ), true) } font2 = guiCreateFont( "lithos.ttf", 50 ) guiSetFont( labely["hraci"], font2 ) guiLabelSetHorizontalAlign(labely["hraci"], "center", false) guiLabelSetVerticalAlign(labely["hraci"], "center") guiSetAlpha (ikony["dd"], 0.75 ) guiSetAlpha (ikony["drift"], 0.75 ) guiSetAlpha (ikony["parkour"], 0.75 ) guiSetAlpha (ikony["trials"], 0.75 ) guiSetAlpha (ikony["shooter"], 0.75 ) guiSetAlpha (ikony["dm"], 0.75 ) guiSetAlpha (ikony["hunter"], 0.75 ) guiSetAlpha (ikony["zombie"], 0.75 ) guiSetAlpha (ikony["slender"], 0.75 ) guiSetAlpha (ikony["race"], 0.75 ) guiSetAlpha (ikony["counterstrike"], 0.75 ) addEventHandler ( "onClientMouseEnter", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end ) addEventHandler ( "onClientMouseLeave", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end ) end addCommandHandler ("lobby", lobby ) function zpet () addEventHandler ( "onClientGUIClick", ikony["dm"], zpet2, false ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), zpet ) function zpet2(button) if button == "left" then showCursor ( false ) outputConsole ("work it") end end Why button doesn't work? ERROR: lobby/client.lua:69:attempt to index global 'ikony' (a nil value)
  11. Hello guys, how can blur bg with script? I don't mean image, but blur the game.
  12. ----------------------------- -- Userpanel Design --------- ----------------------------- local ikony = { ["pohar"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/1.png", true), -- Obdélník ["ovladac"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/5.png", true), -- Čtverec ["sluchatka"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/7.png", true), -- Čtverec ["taska"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/9.png", true), -- Čtverec ["fotak"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/8.png", true), -- Čtverec ["posta"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/6.png", true), -- Obdélník ["kalendar"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/2.png", true), -- Obdélník ["kufr"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/3.png", true), -- Obdélník ["statistika"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/11.png", true), -- Obdélník ["cas"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/10.png", true), -- Obdélník ["zpet"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/4.png", true), -- Obdélník } guiSetEnabled (ikony["cas"], false ) guiSetEnabled (ikony["kalendar"], false ) local labely = { ["cas"] = guiCreateLabel(0.657, 0.13, 0.27, 0.19, "", true), ["datum"] = guiCreateLabel(0.37, 0.53, 0.27, 0.09, "", true), ["rok"] = guiCreateLabel(0.365, 0.62, 0.27, 0.09, "2013", true), } font = guiCreateFont( "casik.ttf", 100 ) guiSetFont( labely["cas"], font ) guiLabelSetHorizontalAlign(labely["cas"], "center", false) guiLabelSetVerticalAlign(labely["cas"], "center") font2 = guiCreateFont( "cas.ttf", 50 ) guiSetFont( labely["datum"], font2 ) guiLabelSetHorizontalAlign(labely["datum"], "center", false) guiLabelSetVerticalAlign(labely["datum"], "center") font3 = guiCreateFont( "cas.ttf", 60 ) guiSetFont( labely["rok"], font3 ) guiLabelSetHorizontalAlign(labely["rok"], "center", false) guiLabelSetVerticalAlign(labely["rok"], "center") -- Alphy -- guiSetAlpha ( ikony["pohar"], 0.75 ) guiSetAlpha ( ikony["ovladac"], 0.75 ) guiSetAlpha ( ikony["sluchatka"], 0.75 ) guiSetAlpha ( ikony["taska"], 0.75 ) guiSetAlpha ( ikony["fotak"], 0.75 ) guiSetAlpha ( ikony["posta"], 0.75 ) guiSetAlpha ( ikony["kalendar"], 1 ) guiSetAlpha ( ikony["kufr"], 0.75 ) guiSetAlpha ( ikony["statistika"], 0.75 ) guiSetAlpha ( ikony["cas"], 1 ) guiSetAlpha ( ikony["zpet"], 0.75 ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, false ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, false ) end -- Alphy -- addEventHandler ( "onClientMouseEnter", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end ) addEventHandler ( "onClientMouseLeave", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end ) local visible = false bindKey ("U", "down", function ( ) visible = ( not visible ) showCursor ( false ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, visible ) end if ( visible ) then showCursor ( true ) local realTime = getRealTime ( ) local rTime = string.format ( "%02d:%02d", realTime.hour, realTime.minute) local realDate = getRealTime ( ) local rDate = string.format ( "%02d/%d", realDate.monthday, realDate.month+1) guiSetText ( labely["cas"], rTime ) guiSetText ( labely["datum"], rDate ) end end ) function zpet () addEventHandler ( "onClientGUIClick", ikony["zpet"], zpet2, false ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), zpet ) function zpet2(button) if button == "left" then showCursor ( false ) for _, gui in pairs ( ikony ) do guiSetVisible ( gui, not visible ) end for _, gui in pairs ( labely ) do guiSetVisible ( gui, not visible ) end end end When i click to button ikony["zpet"] i must then press 2x U to open it again, but why? Where's problem?
  13. papam77

    Error alpha

    Already works, ty
  14. Man, it's still show me when i start resource.
  15. When resource start it show me everything.
  16. But here is problem, it show me the resource when i start this resource. And i must press 2x U to show time and date
  17. ----------------------------- -- Userpanel Design --------- ----------------------------- bindKey ("U", "up", function () showCursor (true) local realTime = getRealTime ( ) local rTime = string.format ( "%02d:%02d", realTime.hour, realTime.minute) local realDate = getRealTime ( ) local rDate = string.format ( "%02d/%d", realDate.monthday, realDate.month+1) local ikony = { ["pohar"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/1.png", true), -- Obdélník ["ovladac"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/5.png", true), -- Čtverec ["sluchatka"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/7.png", true), -- Čtverec ["taska"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/9.png", true), -- Čtverec ["fotak"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/8.png", true), -- Čtverec ["posta"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/6.png", true), -- Obdélník ["kalendar"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/2.png", true), -- Obdélník ["kufr"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/3.png", true), -- Obdélník ["statistika"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/11.png", true), -- Obdélník ["cas"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/10.png", true), -- Obdélník ["zpet"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/4.png", true), -- Obdélník } guiSetEnabled (ikony["cas"], false ) guiSetEnabled (ikony["kalendar"], false ) local labely = { ["cas"] = guiCreateLabel(0.637, 0.13, 0.27, 0.19, ""..rTime, true), ["datum"] = guiCreateLabel(0.37, 0.53, 0.27, 0.09, ""..rDate, true), ["rok"] = guiCreateLabel(0.365, 0.62, 0.27, 0.09, "2013", true), } font = guiCreateFont( "cas.ttf", 75 ) guiSetFont( labely["cas"], font ) guiLabelSetHorizontalAlign(labely["cas"], "center", false) guiLabelSetVerticalAlign(labely["cas"], "center") font2 = guiCreateFont( "cas.ttf", 50 ) guiSetFont( labely["datum"], font2 ) guiLabelSetHorizontalAlign(labely["datum"], "center", false) guiLabelSetVerticalAlign(labely["datum"], "center") font3 = guiCreateFont( "cas.ttf", 60 ) guiSetFont( labely["rok"], font3 ) guiLabelSetHorizontalAlign(labely["rok"], "center", false) guiLabelSetVerticalAlign(labely["rok"], "center") -- Alphy -- guiSetAlpha ( ikony["pohar"], 0.75 ) guiSetAlpha ( ikony["ovladac"], 0.75 ) guiSetAlpha ( ikony["sluchatka"], 0.75 ) guiSetAlpha ( ikony["taska"], 0.75 ) guiSetAlpha ( ikony["fotak"], 0.75 ) guiSetAlpha ( ikony["posta"], 0.75 ) guiSetAlpha ( ikony["kalendar"], 1 ) guiSetAlpha ( ikony["kufr"], 0.75 ) guiSetAlpha ( ikony["statistika"], 0.75 ) guiSetAlpha ( ikony["cas"], 1 ) guiSetAlpha ( ikony["zpet"], 0.75 ) -- Alphy -- addEventHandler ( "onClientMouseEnter", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end ) addEventHandler ( "onClientMouseLeave", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end ) end ) bindKey("U", "down", function () for _, gui in pairs ( ikony ) do guiSetVisible ( gui, false ) end end) bindKey("U", "down", function () for _, gui in pairs ( labely ) do guiSetVisible ( gui, false ) end end) I made this, but i need to hide images, when press it second time and this is make everything again.
  18. ----------------------------- -- Userpanel Design --------- ----------------------------- bindKey ("U", "up", function () showCursor (true) local realTime = getRealTime ( ) local rTime = string.format ( "%02d:%02d", realTime.hour, realTime.minute) local realDate = getRealTime ( ) local rDate = string.format ( "%02d/%d", realDate.monthday, realDate.month+1) local ikony = { ["pohar"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/1.png", true), -- Obdélník ["ovladac"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/5.png", true), -- Čtverec ["sluchatka"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/7.png", true), -- Čtverec ["taska"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/9.png", true), -- Čtverec ["fotak"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/8.png", true), -- Čtverec ["posta"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/6.png", true), -- Obdélník ["kalendar"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/2.png", true), -- Obdélník ["kufr"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/3.png", true), -- Obdélník ["statistika"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/11.png", true), -- Obdélník ["cas"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/10.png", true), -- Obdélník ["zpet"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/4.png", true), -- Obdélník } guiSetEnabled (ikony["cas"], false ) guiSetEnabled (ikony["kalendar"], false ) local labely = { ["cas"] = guiCreateLabel(0.637, 0.13, 0.27, 0.19, ""..rTime, true), ["datum"] = guiCreateLabel(0.37, 0.53, 0.27, 0.09, ""..rDate, true), ["rok"] = guiCreateLabel(0.365, 0.62, 0.27, 0.09, "2013", true), } font = guiCreateFont( "cas.ttf", 75 ) guiSetFont( labely["cas"], font ) guiLabelSetHorizontalAlign(labely["cas"], "center", false) guiLabelSetVerticalAlign(labely["cas"], "center") font2 = guiCreateFont( "cas.ttf", 50 ) guiSetFont( labely["datum"], font2 ) guiLabelSetHorizontalAlign(labely["datum"], "center", false) guiLabelSetVerticalAlign(labely["datum"], "center") font3 = guiCreateFont( "cas.ttf", 60 ) guiSetFont( labely["rok"], font3 ) guiLabelSetHorizontalAlign(labely["rok"], "center", false) guiLabelSetVerticalAlign(labely["rok"], "center") -- Alphy -- guiSetAlpha ( ikony["pohar"], 0.75 ) guiSetAlpha ( ikony["ovladac"], 0.75 ) guiSetAlpha ( ikony["sluchatka"], 0.75 ) guiSetAlpha ( ikony["taska"], 0.75 ) guiSetAlpha ( ikony["fotak"], 0.75 ) guiSetAlpha ( ikony["posta"], 0.75 ) guiSetAlpha ( ikony["kalendar"], 1 ) guiSetAlpha ( ikony["kufr"], 0.75 ) guiSetAlpha ( ikony["statistika"], 0.75 ) guiSetAlpha ( ikony["cas"], 1 ) guiSetAlpha ( ikony["zpet"], 0.75 ) -- Alphy -- addEventHandler ( "onClientMouseEnter", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end ) addEventHandler ( "onClientMouseLeave", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end ) end ) bindKey("U", "down", function () for _, gui in pairs ( ikony ) and ( labely ) do guiSetVisible ( gui, false ) end end) Now i have this, but it makes it again.
  19. How you mean it, i don't understand.
  20. And this please i've forgoten ----------------------------- -- Userpanel Design --------- ----------------------------- bindKey ("U", "up", function () showCursor (true) local realTime = getRealTime ( ) local rTime = string.format ( "%02d:%02d", realTime.hour, realTime.minute) local realDate = getRealTime ( ) local rDate = string.format ( "%02d/%d", realDate.monthday, realDate.month+1) local ikony = { ["pohar"] = guiCreateStaticImage(0.09, 0.11, 0.27, 0.20, "img/1.png", true), -- Obdélník ["ovladac"] = guiCreateStaticImage(0.09, 0.32, 0.13, 0.20, "img/5.png", true), -- Čtverec ["sluchatka"] = guiCreateStaticImage(0.2296, 0.32, 0.13, 0.20, "img/7.png", true), -- Čtverec ["taska"] = guiCreateStaticImage(0.507, 0.11, 0.13, 0.20, "img/9.png", true), -- Čtverec ["fotak"] = guiCreateStaticImage(0.368, 0.11, 0.13, 0.20, "img/8.png", true), -- Čtverec ["posta"] = guiCreateStaticImage(0.368, 0.32, 0.27, 0.20, "img/6.png", true), -- Obdélník ["kalendar"] = guiCreateStaticImage(0.368, 0.53, 0.27, 0.20, "img/2.png", true), -- Obdélník ["kufr"] = guiCreateStaticImage(0.646, 0.53, 0.27, 0.20, "img/3.png", true), -- Obdélník ["statistika"] = guiCreateStaticImage(0.646, 0.32, 0.27, 0.20, "img/11.png", true), -- Obdélník ["cas"] = guiCreateStaticImage(0.646, 0.11, 0.27, 0.20, "img/10.png", true), -- Obdélník ["zpet"] = guiCreateStaticImage(0.09, 0.53, 0.27, 0.20, "img/4.png", true), -- Obdélník } guiSetEnabled (ikony["cas"], false ) guiSetEnabled (ikony["kalendar"], false ) local labely = { ["cas"] = guiCreateLabel(0.637, 0.13, 0.27, 0.19, ""..rTime, true), ["datum"] = guiCreateLabel(0.37, 0.53, 0.27, 0.09, ""..rDate, true), ["rok"] = guiCreateLabel(0.365, 0.62, 0.27, 0.09, "2013", true), } font = guiCreateFont( "cas.ttf", 75 ) guiSetFont( labely["cas"], font ) guiLabelSetHorizontalAlign(labely["cas"], "center", false) guiLabelSetVerticalAlign(labely["cas"], "center") font2 = guiCreateFont( "cas.ttf", 50 ) guiSetFont( labely["datum"], font2 ) guiLabelSetHorizontalAlign(labely["datum"], "center", false) guiLabelSetVerticalAlign(labely["datum"], "center") font3 = guiCreateFont( "cas.ttf", 60 ) guiSetFont( labely["rok"], font3 ) guiLabelSetHorizontalAlign(labely["rok"], "center", false) guiLabelSetVerticalAlign(labely["rok"], "center") -- Alphy -- guiSetAlpha ( ikony["pohar"], 0.75 ) guiSetAlpha ( ikony["ovladac"], 0.75 ) guiSetAlpha ( ikony["sluchatka"], 0.75 ) guiSetAlpha ( ikony["taska"], 0.75 ) guiSetAlpha ( ikony["fotak"], 0.75 ) guiSetAlpha ( ikony["posta"], 0.75 ) guiSetAlpha ( ikony["kalendar"], 1 ) guiSetAlpha ( ikony["kufr"], 0.75 ) guiSetAlpha ( ikony["statistika"], 0.75 ) guiSetAlpha ( ikony["cas"], 1 ) guiSetAlpha ( ikony["zpet"], 0.75 ) -- Alphy -- addEventHandler ( "onClientMouseEnter", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 1 ) break end end end ) addEventHandler ( "onClientMouseLeave", root, function ( aX, aY ) for _, gui in pairs ( ikony ) do if ( gui == source ) then guiSetAlpha ( source, 0.75 ) break end end end ) end ) bindKey("U", "down", function () if (ikony) and (labely) then destroyElement(ikony) destroyElement(labely) end end) How can hide all, because this doesn't work..
×
×
  • Create New...