Jump to content

FernandoMTA

Members
  • Posts

    419
  • Joined

  • Last visited

  • Days Won

    36

Everything posted by FernandoMTA

  1. Interesting. Is there any documentation? Like a route to get information on a specific server instead of obtaining the full list as JSON?
  2. This is incredible. I use it with the VSCode Error Lens extension, it's so useful! https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens THANK YOU
  3. Ah that bug is unfortunate However, passing -1 as the time parameter in setPedLookAt will make the head face that direction forever, and this is not a good idea because you want the player's head to reset in some circumstances (when they're aiming, for example, as coded in the script). That's interesting. I'll test it. You should report it here if you have proof
  4. The ones that haven't been blocked do work! os.date can be useful to format dates for example
  5. shorter version: math.randomseed(os.time())
  6. yes, good suggestions. sadly it's a closed-source project that we can't contribute to, but there are people in the MTA Team that want to remake the community.mtasa.com site
  7. doesn't really make sense to pick a serial on installing MTA, it's just a thing for admins and server devs However maybe one day when community.mtasa.com is revamped we will have Usernames & everyone will have their unique community account connected... with unique nicknames etc
  8. reshade does make the game look sexy as f*ck i can't deny that
  9. Rip. Send me a friend req I'll make an exception
  10. Sorry, I usually don't accept Discord friend req out of the blue. Send me a forum PM
  11. Fixed in latest of https://community.multitheftauto.com/index.php?p=resources&s=details&id=18882
  12. It's possible to have custom new vehicle & skin models in the Freeroam default MTA gamemode while not replacing any GTA vehicles or skins! Download & Instructions: https://github.com/Fernando-A-Rocha/mtasa-resources/releases/tag/v3.3.0-newmodels-freeroam detects all mods you have added in your newmodels resource so you don't have to edit the lists (XML) manually runs this procedure automatically when you start the freeroam_newmodels resource there is a command for you to scan for new models and update the lists involves very few code changes to the original freeroam resource works flawlessly with newmodels, syncing the models of your server's vehicles & skins to every player automatically PS. The concept is very similar to what I did for newmodels Map Editor.
  13. @BranD @SDabdlmounaim96 Sorry but what you guys are saying about element data doesn't make sense. Look at the script BranD posted. It does setElementData on the localPlayer with the sync value to true (default), it is synchronized and BrenD's comment above is wrong. All other clients have this synced to them and can do getElementData on their side, to retrieve other players looking at position. This is how he syncs the looking at position, it's with element data that is transferred from the client to the server and then to all clients. Doing this every 100ms is not a good idea period. I'll look into what you said about ped aiming. There is no such thing as client to client synchronization
  14. @BranD Your script spams element data every 100ms, this is not good for the server. Synchronization calls will be too excessive and it will result in horrible lag. Your script also won't work properly as it's obtaining Z position of 10 with getWorldFromScreenPosition(width/2, height/2, 10), resulting in players' heads looking down or up if they're not at that height on the map. I had come up with a simple optimized solution that is 100% clientside: https://community.multitheftauto.com/index.php?p=resources&s=details&id=18882 Please take this as constructive criticism, no offense.
  15. Join my new Discord Community where I post updates of all my projects! https://discord.gg/eUK7HcnT2J
  16. They are recommended functions to handle password hashing in MTA, yes. Check the wiki: - https://wiki.multitheftauto.com/wiki/PasswordHash - https://wiki.multitheftauto.com/wiki/PasswordVerify
  17. I can't believe it's already been a year! Time flies...
  18. Hello, from my understanding what you can do is: - disable vehicle engine sounds (and the ones you want to replace) using https://wiki.multitheftauto.com/wiki/SetWorldSoundEnabled - https://wiki.multitheftauto.com/wiki/World_sound_groups - play custom sounds using playSound and playSound3D You can't just "replace" game sounds sadly, they need to be first disabled then you may use custom MTA functions to play sounds. You could use these scripts for inspiration, but I don't recommend using the entire resource in your server because this is a bit outdated and could be better optimized. https://github.com/brzys/bengines @TYMECRUISER47
  19. Useful: printing current function name: local function myFunc() print(debug.getinfo(1, "n").name); end myFunc()
  20. @J4cobLIVEmain You should ask on the Sphene Discord as there's several people there who are familiar with the game code.
  21. Try Malwarebytes Anti-Malware (Free trial) @1Molodoy1
×
×
  • Create New...