Jump to content

Hugos

Members
  • Posts

    172
  • Joined

  • Last visited

Everything posted by Hugos

  1. Help me, how to use functions "outputPressedCharacter" and this script: Button = guiCreateStaticImage(250, 250, 250, 30, "gfx/Button.png", false) addEventHandler("onClientGUIClick", Button, FButton, false) function FButton(button) if button == "left" then end end show text that the user types after clicking the button (text, not a single character)?
  2. Hugos

    [HELP] Text

    I don't need to print the text. Let's say this field is for login. The player clicks on the field and enters the login, it is displayed on top of the field. There is a "onClientCharacter"function. Don't know how to do the whole text, not per character.
  3. The issue has been resolved
  4. Hugos

    [HELP] Text

    function fedit() edit1 = guiCreateStaticImage(608, 544, 150, 40, "gfx/edit.png", false) addEventHandler("onClientGUIClick", edit1, fedit1, false) end addEventHandler("onClientResourceStart", getRootElement(), fedit) function fedit (button) if button == "left" then end end User clicked "guiCreateStaticImage" >>> user typing text >>> displayed on top "guiCreateStaticImage". P.S: edit.png - rectangle (input field)
  5. Hugos

    [HELP] Text

    I created the field using guiCreateStaticImage, need to attach function onClientGUIClick to when the button is pressed (guiCreateStaticImage), it was possible to write the text which would be displayed on the screen (in the field). Perhaps with the help dxDrawText? Help me, please!
  6. how to do "dxDrawRectangle" over "guiCreateStaticImage"?
  7. How to call dxDrawRectangle with the help OnClientGUIClick?
  8. All thanks. Sort out)
  9. after replacing 1. addEventHandler("onClientRender", root, 2. function () for 1. addEventHandler("onClientRender", root, 2. function dx() window are no longer displayed.?
  10. Я не создавал окно local x,y = guiGetScreenSize() Font = dxCreateFont("fonts/GOTHIC.ttf", 20) addEventHandler("onClientRender", root, function() dxDrawRectangle(0, 0, x, y, tocolor(1, 1, 1), false) dxDrawRectangle(358, 159, 650, 450, tocolor(0, 0, 0), false) dxDrawRectangle(358, 159, 650, 50, tocolor(187, 255, 51), false) dxDrawText("WELCOM", 358, 159, 1008, 209, tocolor(0, 0, 0), 1, Font, "center", "center") end ) function Connect() showCursor(true) outputChatBox("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") BTN_L_A = guiCreateStaticImage(358, 209, 100, 25, "img/btn_l_a.png", false) BTN_R = guiCreateStaticImage(458, 209, 140, 25, "img/btn_r.png", false) BTN_GO = guiCreateStaticImage(608, 544, 150, 40, "img/btn_go.png", false) addEventHandler("onClientGUIClick", BTN_GO, F_BTN_GO, false) end addEventHandler("onClientResourceStart", root, Connect) function F_BTN_GO (button) if button == "left" then guiSetVisible(BTN_L_A, false) guiSetVisible(BTN_R, false) triggerServerEvent ("onGreeting", getLocalPlayer()) end end My script
  11. BTN_GO = guiCreateStaticImage(608, 544, 150, 40, "img / btn_go.png", false)
  12. I have a script like this (When you tap the text displayed and the gui is not removed) function F_BTN_GO (button) if button == "left" then outputChatBox("hi!") guiSetVisible(BTN_L_A, false) end end Button ( BTN_L_A = guiCreateStaticImage(358, 209, 100, 25, "img/btn_l_a.png", false) )
  13. Help. How to make the action "OnClientGUIClick" which would be closed "guiCreateStaticImage"?
  14. Tell me what to do? The function "SpawnPlayer" does not work.
  15. Hi everyone. I created image: guiCreateStaticImage(608, 544, 150, 40, "img/btn.png", false). How do I make a button from a picture. It is necessary that when clicked, the action is performed. How to do this?
×
×
  • Create New...