Jump to content

Forums

  1. Multi Theft Auto: San Andreas 1.x

    1. Support for MTA:SA 1.x

      HELP! HELP! Need help? Post here.

      54.8k
      posts
    2. User Guides

      These guides are a good place to start learning how to achieve certain things within MTA in an efficient and well mannered way.

      11
      posts
    3. Open Source Contributors

      This space is for contributors to discuss the development of MTA. No user suggestions/support.

      1.3k
      posts
    4. Suggestions

      Suggestions and requests go here. Please note that actual feature requests must be filed on our GitHub.

      7.7k
      posts
    5. Ban appeals

      Use this forum to appeal your GLOBAL MTA:SA bans. Permanent bans only - appeals for timed ones (eg. 24 hours) will be refused.

      Do not use it for appealing server-specific bans as we do not have power over these specific servers.

      4.6k
      posts
  2. General MTA

    1. News

      News and updates on Multi Theft Auto.

      9.8k
      posts
    2. Media

      User-made screens and movies go here.

      4.5k
      posts
    3. Site/Forum/Discord/Mantis/Wiki related

      Share your comments & concerns about our services.

      5.5k
      posts
    4. MTA Chat

      MTA related chat that is NOT support related!

      2.1k
      posts
    5. 330.2k
      posts
  3. MTA Community

    1. Scripting

      All Lua scripting topics related to Multi Theft Auto.

      261.1k
      posts
    2. Maps

      Discussions for maps on various gamemodes.

      13.4k
      posts
    3. Resources

      Everything else about resources.

      28.5k
      posts
    4. Other Creations & GTA modding

      This section includes things such as GUI themes, forum userbars, user-created MTA logos, etc. Also contains topics which cover general GTA modding areas that can be used in MTA, such as modelling.

      2.4k
      posts
    5. Competitive gameplay

      Discussions about various MTA-related competitive gameplay events. Also gang (clan) forums.

      26.7k
      posts
    6. Servers

      Looking for a server to play on? Looking for someone to host your server? Looking for a place to discuss with other server owners? Here's where to look.

      15.6k
      posts
  4. Other

    1. General

      Non-MTA discussions. Anything you want.

      38.1k
      posts
    2. Multi Theft Auto 0.5r2

      Discussion regarding Multi Theft Auto 0.5r2 for GTAIII and Vice City.

      671
      posts
    3. Third party GTA mods

      Showcase for single player mods and requests.

      810
      posts
  5. Archive

    1. 144k
      posts
    2. Trash

      These posts have broken forum rules. They are stored here temporarily so offending users can see what they have done wrong.

      2.5k
      posts
  • Posts

    • Hello to all, I have a very basic problem in the field of Mta Server Console (MtaServer.exe) When the players on my server reach a large number, Server FPS sync logic reach the numbers 2..1 and the console crashes. After asking people a bit, I realized that there is probably a heavy resource that causes this to happen, And I found that heavy resource But I have optimized all the resources of my server as much as possible. With this Resource, is there a way to prevent the Console from closing suddenly? Does it depend on the host server operating system? (My OS is: Windows Server 2019), Because I have seen many servers that have very, very heavy resources and their operating system is Linux and they do not have this problem. Even my server resources (CPU, Memory) do not reach 100%!
    • This simple code will protect you from attacking a server by TriggerServerEvent. Also you can use onPlayerTriggerEventThreshold but I think if player turns off internet and do actions then after turning it on all packets will be send in the same interval. Change some settings to your own! -- client side local ServerCalls ServerCalls = { interval = 1000, maxCallsPerInterval = 20, time = 0, calls = 0, refresh = function(self) if self.time < getTickCount() then self.time = getTickCount() + self.interval self.calls = 0 end end, add = function(self) self:refresh(); self.calls = self.calls + 1 end, } ServerCalls__index = ServerCalls addDebugHook("preFunction", function() ServerCalls:add(); if ServerCalls.calls >= ServerCalls.maxCallsPerInterval and not ServerCalls.makeLastCall then triggerServerEvent("banPlayer", resourceRoot) ServerCalls.makeLastCall = true end return ServerCalls.makeLastCall and "skip" or true end, {"triggerServerEvent"}) -- basic implenemtation of banPlayer (server side) addEvent("banPlayer", true) addEventHandler("banPlayer", resourceRoot, function() banPlayer(client, true, false, true, "Korea", "Anty ddos") end)  
    • Wich dx u use give us example 
    • Nevermind, figured it out in the end.  
    • But it's also ruining it somehow, because player cannot be set back to it's root, because the way my script works, when the player attaches to vehicle, the player can be set to its child, but when it's not needed anymore the player cannot be set back to its root, or maybe I'm just using it wrong, I only need this parent stuff when the player is attached a.k.a part of the attachedPlayers table. The reason why I would want to reset it back to  root is because when the car changes interior/dimension the player because he's still an active element of the car, gets teleported there too, even if he is detached and etc.

Twitter Feed

×
×
  • Create New...