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.

      55.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. [Read-Only] Ban appeals

      We have stopped accepting ban appeals for MTA. You can find more about this at our newspost: https://forum.multitheftauto.com/topic/139550-cheater-reports-ban-appeals-in-2023/

      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.7k
      posts
    4. MTA Chat

      MTA related chat that is NOT support related!

      2.2k
      posts
    5. 331.2k
      posts
  3. MTA Community

    1. Scripting

      All Lua scripting topics related to Multi Theft Auto.

      262.5k
      posts
    2. Maps

      Discussions for maps on various gamemodes.

      13.5k
      posts
    3. Resources

      Everything else about resources.

      28.8k
      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.5k
      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.9k
      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.

      694
      posts
    3. Third party GTA mods

      Showcase for single player mods and requests.

      813
      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.

      4k
      posts
  • Posts

    • Hello MTA community! My name is Ehsan/Exxon I’m excited to share a project I’ve been working on: mtasa-nestjs – a high-level API server framework for MTA:SA, inspired by Express.js and NestJS. What is mtasa-nestjs? mtasa-nestjs is a modular, structured Lua framework that makes building server-side APIs for MTA:SA simpler and more scalable. It brings modern backend patterns like Controllers, Middlewares, Guards, Interceptors, and DTOs directly into MTA:SA resources. It’s perfect for developers who want to build secure, maintainable, and professional APIs for their game servers. Key Features Express.js / NestJS-inspired structure: Clear separation of concerns for Controllers, Middlewares, Guards, and Interceptors. JWT Authentication & Password Hashing: Built-in secure JWT (HS256) implementation and password hashing from scratch. DTO Support: Validate and structure input data for cleaner code. Middlewares & Guards: Handle CORS, JSON parsing, authentication, authorization, and more. No External Dependencies: Works out-of-the-box in Lua for MTA:SA. Why I Built This Many MTA:SA servers handle HTTP requests in an ad-hoc manner, often leading to messy and hard-to-maintain code. With mtasa-nestjs, you can structure your API like a professional backend framework, making your server easier to scale and maintain. Example Usage Creating a JWT Token:  local token = jwt.encode({userId = 123, role = "admin"}, "SECRET_KEY")  iprint(token) Protecting Endpoints with Guards: AuthGuard = function(ctx)   local authHeader = ctx.headers["authorization"]   if not authHeader then error(Exception.Unauthorized("Missing Authorization header")) end   local token = authHeader:match("^Bearer%s+(.+)$")   local payload = jwt.verify(token, "SECRET_KEY")   ctx.user = payload return true  end Why You Should Try It If you’ve ever wanted a clean, structured, and modern API architecture for your MTA:SA server, this is a great starting point. It’s fully modular, fully Lua-based, and ready to handle complex server-side logic with minimal fuss. Where to Get It Ready on my github repository called mtsa-nestjs Make sure to create your own controllers, guards and etc. I’d love to hear feedback from the community. If you try it out, let me know what features you find most useful or what could be improved. Happy coding!
    • Update: i looked more into it. and saw that the bug is on the txd file itself. if i replace texture it turns to torso texture. if its the original txd that i use to replace. it works just fine And solved. i had to use raster 555 pixel format
    • When I replace head and torso textures, it works just fine. But when i replace any shirt. It just uses cj's torso texture And heres the code Meta.xml: <meta> <info name="hesucj" version="1.4" type="misc"/> <script src="Skin.lua" type="client" /> <file src="head.dff" /> <file src="head.txd" /> <file src="player_face.txd" /> <file src="player_torso.txd" /> <file src="torso.txd" /> <file src="hoodjackbeige.txd" /> </meta> Skin.lua: function replaceModel() dff = engineLoadDFF("head.dff", 30087 ) engineReplaceModel(dff, 30087) txd = engineLoadTXD("player_face.txd", 30418 ) engineImportTXD(txd, 30418) txda = engineLoadTXD("player_torso.txd", 30421 ) engineImportTXD(txda, 30421) txde = engineLoadTXD("hoodjackbeige.txd", 30378 ) engineImportTXD(txde, 30378) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)  
    • I get an error. I'm stuck on: choose an account to confirm you are not a bot
    • i converted a model from gta vice city but cant apply texture on it. https://imgur.com/a/2gknSLJ

Twitter Feed

×
×
  • Create New...