Hugos

Members
  • Content Count

    160
  • Joined

  • Last visited

Everything posted by Hugos

  1. Hugos

    Animate

    Help! I can 't understand how to set up "guiSetAlpha" with "getTickCount."
  2. Hugos

    Animate

    Oh, right! Thanks)) And how I didn 't think of it.
  3. Hugos

    Animate

    Tell me, are there options for animations such as smooth appearance or fading? (These are Animations that are NOT driven by type "Linear," InQuad, "etc.)?
  4. Hugos

    help

    Thanks a lot!
  5. Hugos

    help

    I realized what the problem was. When you click on a picture, it gets to the foreground. How do I fix it?
  6. Hugos

    help

    I had a problem. When I click on "body" I have a missing "go." What to do? Help. addEvent("PlayerJoined", true) function PlayerJoined() setCursorPosition(x/2, y/2) showCursor(true) body = guiCeateStaticImage(x/2-(y/(1080/280)/2), y/2+y/8.5, y/(1080/280), y/(1080/50), "gfx/go!.png", false) go = guiCreateStaticImage(x/2-(y/(1080/400)/2), y/2-(y/(1080/530)/2), y/(1080/400), y/(1080/530), "gfx/body.png", false) end addEventHandler("PlayerJoined", localPlayer, PlayerJoined)
  7. Hugos

    Draw image?

    Well. Can you tell me more about how to make the dimensions of the picture "guiCreateStaticImage" relative? I have an image with dimensions 400x530, I set "width" - y/2.7, how do I do to have "height" exhibited automatically? P.S: x, y = guiGetScreenSize()
  8. Hugos

    Draw image?

    What is the difference between "guiCreateStaticImage" and "dxDrawImage." For example, I draw panel and buttons using images. What 's best to use?
  9. Hugos

    DX rectangle)

    I got it. This means only when using "Browser." Thanks!
  10. Hugos

    DX rectangle)

    And how do I write hrml and css, create files and connect to *.Lua or how?
  11. Hugos

    DX rectangle)

    THANKS!!! Do you know if HTML and CSS can be used in MTA scripts?
  12. Hugos

    DX rectangle)

    Tell me, is it possible to draw a rectangle that will have rounded corners?
  13. Hello to everyone. I want to make sure that the player 's name is displayed above his head, but I don 't know how to do it correctly. Found the function "dxDrawTextOnElement" - I can 't understand how to apply it correctly? P.S: Also I want to add a team with which players can choose whether they will see the names of other players or not. Is it possible to implement this?
  14. Hugos

    help

    Thanks!
  15. Hugos

    help

    If it is not possible to delete, then such a question: I have "guiCreateStaticImage," and I use "onClientGUIClick" for the image. What function do I need to add them to avoid using a trigger?
  16. Hugos

    help

    Triggers are not deleted like this.
  17. Hugos

    help

    Such an option is not suitable.
  18. Hugos

    help

    I need to delete it after running)
  19. Hugos

    help

    Would you please tell me how to remove the trigger? For example: triggerEvent("trig", resourceRoot) addEvent("trig", true) function trig() ... end addEventHandler("trig", resourceRoot, trig) ...how to remove it?
  20. Hugos

    Help!

    I didn 't get it a little bit. Then how should the function fully look?
  21. Hugos

    Help!

    I have such a system for oral ID to the player: function getIDFromPlayer(player) if player then local theid players = getElementsByType("player") for id,p in ipairs(players) do if player == p then theid = i end end return theid else return false end end Please help. I need to make sure that every player is assigned an ID at spawn. But I now work a little off-line (when the player comes out with id 1, the player with id 2, assigned id 1, but I need this player to have id 2 left, and the one who comes in - established id 1-n (is not busy) ).
  22. Hugos

    Open Browser

    Tell me please if it is possible to make a function that opens an adress URL in your browser? P.S.: I mean open a browser not in the game (not createBrowser), but in a regular browser (out of the game).
  23. Hugos

    Animation

    THANKS!)