Jump to content

botder

MTA Team
  • Posts

    524
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by botder

  1. The require function is disabled in MTA. Every script in your meta.xml shares the same global table _G, you don't have to import any scripts. If you define a global function in one script, it will be available in the other script - but you can't call functions directly on client/server from server/client respectively, you would have to use events.

  2. If you can't replicate something from an .ASI plugin then please report the missing functionality to offer an implementation for scripters. Also, the .asi plugins probably won't play along with the Anti-Cheat due to anti-memory tampering measures.

  3. This particular function, which you copied from GitHub, is already given to you through the MTA functions. I gave you the link to the wiki and a little example function call how to do it, where did you get stuck? I mean, you only have to call the function hash with the first parameter being the algorithm as a string, in your case it should be "sha1", and the second parameter the to-be-hashed string. In your code you did sha1(password), replace it with hash("sha1", password). Work done and you don't have to include any third-party code to your resource.

  4. Quote
    1. Execute the script win-create-projects.bat
    2. Open the solution file MTASA.sln in the Build directory
    3. Compile in Visual Studio with Debug configuration (may take some minutes)
    4. Execute the script win-install-data.bat

    https://wiki.multitheftauto.com/wiki/Compiling_MTASA

    You don't have to copy anything from your Nightly installation. Running win-install-data.bat should download the most recent net.dll and netc.dll for your development purposes.

  5. A resource-pointer doesn't exist on clientside - you can't send "resources" to clientside.

    You can send resource root elements to clientside, but these will only work if the corresponding resource is running.

×
×
  • Create New...