Jump to content

Saml1er

Retired Staff
  • Posts

    1,058
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Saml1er

  1. Just because MTA is a mod, it does not mean that we can't have MTA on Steam.
  2. I would strongly suggest you to avoid using that. Instead, you can create a dummy element and set it as parent for players that you wish to retrieve later using getElementChildren. local moderatorElement = createElement( "moderator", "admin" ) if moderatorElement then for _, v in pairs ( getElementsByType ( "player" ) ) do setElementParent ( v, moderatorElement ) end end addCommandHandler("a", function() for id, element in pairs ( getElementChildren ( moderatorElement ) ) do outputChatBox ( type ( element ) ) end end )
  3. Saml1er

    Gta/mta won't start

    A quick and dirty solution is to right click on the executable "gta_sa.exe," and run it in compatibility mode of windows 7 or XP. Also, please run MTAdiag and paste the URL here.
  4. You can use setPedAnimation setTimer Call setPedAnimation to play animation instead of killPed, and then set the timer to kill the ped. This will kill the ped when animation is over.
  5. MTA will reload the script, if the client edits it, so you don't need to worry about that unless you are dealing with a very expert hacker, which you won't be able to stop anyway. You should always try to keep important logic on server-side, if that's not an option then keep it on client-side.
  6. Saml1er

    BSOD when opening MTA

    The error comes from kernel-Land, you'll need to get rid of the malwares on your pc. If possible, try to do a system restore.
  7. @quindo you might have not disabled them properly then. Check the configuration type at top left when you click on properties, and make sure "Release" is selected. Also, after fixing your settings, execute "win-install-data.bat" to move netc.dll there.
  8. Saml1er

    Timer

    Can you please explain what you are trying to achieve?
  9. Have you tried resetting MTA settings?
  10. Translation: Загрузите и запустите MTADiag и следуйте инструкциям. Отправить любой URL-адрес Pastebin MTADiag дает вам эту тему.
  11. Yes, this is what you're looking for: https://github.com/multitheftauto/mtasa-resources/tree/master/[gamemodes]/[race]/[addons]/race_ghost It records a vehicle movements and plays it as if someone was driving a real car.
  12. Ah, I'm sorry then. I thought it was open-source and MTA provided a DLL to keep the actual implementation secret, I did not know they provided an entire executable, lmao. Other than that, nice work.
  13. That's not my point. I checked your executable, you are using sockets which I understand you have to send a request to MTA and retrieve the file, but it's clearly not something big that you have to hide the implementation. Anyway, I check your luac_mta.exe for spywares, it is safe. If anyone wishes to use this then please check the MD5 of the executable: SAFE luac_mta.exe ( MD5 Hash ): 17ed69ca3ff358280b334e88ef4e5443 EDIT: Read my next post.
  14. If your script is "tiny" as you describe, then please make it public. I would advice everyone to not use this unless it's made public by author.
  15. Which function is not working? Is it jailPlayer or unjailPlayer? If it is unjailPlayer, then fix this location. This location might be wrong. if city == "Los Santos" then setElementPosition ( p, 1543.32, -1675.6, 13.56 ) You are using a global variable "city," try putting outputDebugString or outputChatBox for debugging city variable in unjailPlayer, it might be incorrect. Also, avoid using global variables, they can make your code very difficult to understand because you have no idea where the variable gets modified, instead define a function like getPlayerCurrentCity ().
  16. Please show us your Lua code, where you made attempts.
  17. This is probably a symptom of heap corruption. Debug mode works fine for me too, I get the same error when I compile in release, so it's not just you. Version = 1.5.5-custom.0.000 Time = Wed Feb 28 07:09:52 2018 Module = C:\Users\danish\Documents\Git\Github\Repositories\saml1er\mtasa-blue\Bin\mta\multiplayer_sa.dll Code = 0xC0000005 Offset = 0x0000498E EAX=79616C70 EBX=00000000 ECX=00B6F028 EDX=0FD90000 ESI=03C627D0 EDI=00000000 EBP=76C7DEE0 ESP=0177FD70 EIP=0F14498E FLG=00010202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
  18. Please download: http://www.winmd5.com/download/winmd5free.zip Run the program, click Browse, and choose MTA SA installer. It will give you the MD5 checksum, please paste it here.
  19. Lua is very safe in terms of sandboxing. It doesn't seem to beat Lua in performance. MTA just needed a language that was safe and easy to embed, Lua wins in this case, that's why we are using Lua and not Python.
  20. It depends on the scripts you are running. Check the code and look for variables with the keyword "name." Find the right one and paste the code here.
  21. The console is there for a reason, there's no need to remove it. You can find it on every server. The commands you can execute from console can be also executed from chatbox. Do us all a favor, write a list of commands that you wish to restrict, and post your acl.xml here. If you don't like restricting them from acl then there's no other way around it.
  22. You can use this: https://wiki.multitheftauto.com/wiki/GuiSetInputEnabled It can disable all MTA internal binds including F8 and chat, but since you mentioned that you're doing this because you think that it imposes a security threat. Actually, nope. You can restrict the command to a specific group like admin in acl.xml. Just add this under "admin" group: <right name="command.YourCommandNameHere" access="true"></right> Also, under "Default" group, add this: <right name="command.YourCommandNameHere" access="false"></right> You should read this: https://wiki.multitheftauto.com/wiki/Access_Control_List
  23. Wow, didn't know that. Thanks for sharing Arran. I'm guessing that it's because of PUBG servers as others suggested here. I've seen them getting a lot of players. Also, MTA is receiving some exposure from MTA PUBG gameplays on youtube. https://www.youtube.com/results?search_query=mta+sa+pubg
×
×
  • Create New...