Hugos

Members
  • Content Count

    172
  • Joined

  • Last visited

Everything posted by Hugos

  1. Hugos

    Random?

    Did not understand a little. Can I see an example of a function that generates a random number in a range? P.S: I use Lua random.match - https://www.gammon.com.au/scripts/doc.php?Lua=math.random (not api)
  2. Hugos

    Random?

    I created the function math.random (10, 20), but I get 10 all the time. Help please! How do I always generate different numbers?
  3. Hugos

    Check zone

    Ok. Thanks you!
  4. Hugos

    Check zone

    So this code will work if the player is in areas that are specified by a single array?
  5. Hugos

    Check zone

    Hi everyone! I created an array in which I pointed out street names. For example, Los Santos array: local location_ls = {"Vinewood," Marina, "Mulholland,"...} I need to perform one function when the player is in Los Santos. How can this be done?
  6. Hugos

    Weather

    Спасибо)
  7. Hugos

    Weather

    Please tell me if it is possible to set the weather for a certain region (LS, SF, LV)? So that everywhere is different, not the same.
  8. Hugos

    Server (requirements?)

    Mods optimized. Players like 4000)?
  9. Hi everyone! I don 't know if I wrote in the right section of the forum or not, but there was a question. Please tell me what the requirements are for the server to keep it from hanging and working well? I mean the hardware itself: Processor, RAM, etc.? + What speed should the Internet have? (25, 50, 100, 300, 1000 Mbps:) )
  10. Hugos

    Save time

    Hi everyone! Please tell me how to save time to log file when the server is shut down? (It is necessary that at shutdown) PS: fileWrite(create, ...)
  11. Hugos

    NPC

    Not that. I want to create something like this: https://www.youtube.com/watch?v=k0W5c7VZT-o
  12. Hugos

    NPC

    Hi. Tell us what features are needed to create NPCs that can walk and drive?
  13. Hugos

    Animate

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

    Animate

    Oh, right! Thanks)) And how I didn 't think of it.
  15. 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.)?
  16. Hugos

    help

    Thanks a lot!
  17. Hugos

    help

    I realized what the problem was. When you click on a picture, it gets to the foreground. How do I fix it?
  18. 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)
  19. 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()
  20. 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?
  21. Hugos

    DX rectangle)

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

    DX rectangle)

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

    DX rectangle)

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