Jump to content

All Activity

This stream auto-updates

  1. Past hour
  2. Not sure what kind of backend you use. But here is an npm packets that could be used for inspiration. Probably some dependencies are deprecated. https://github.com/4O4/node-mtasa/tree/master The authOptions: https://github.com/4O4/node-mtasa/blob/aeac8ab9417a7b6a65f117491d1e648a6ad62422/src/client.ts#L107C17-L107C28 Using it in request: https://github.com/4O4/node-mtasa/blob/aeac8ab9417a7b6a65f117491d1e648a6ad62422/src/client.ts#L62 But under the hood (in JS) it is something like this: const credentials = `${username}:${password}`; const encodedCredentials = Buffer.from(credentials).toString('base64'); const result = "Authorization: Basic " + encodedCredentials The header is: Authorization The value is something like: Basic bWlqblVzZXI6Z2VoZWltV2FjaHR3b29yZA==
  3. Today
  4. Seems like there are a lot of things that I must see and learn again from the docs, thanks for pointing that out. With this information, I can update my frontend code to connect to the API resources I will create, which will handle everything; there will be no further events between the browser and the client. But as I wrote a test API server, it seems that I have to pass in the Basic Authentication on every request, Since I won't be using the default account system, it's fine for me to just pass a basic token, but generating it is the question for me at the moment. As you provided the link on Wikipedia, I don't know what I should send in the headers. There was a client ID and a client-secret-key. Should I just create an account on my MTA server, place the username instead of the client ID, and the password instead of the secret key, and generate a Basic auth key? Then, what header should I send it with? Because if I send a normal GET request on a resource I created with httpRouter, it asks me for username and password on my alert, I put the true creds, but after submitting, I see the server logs saying that I logged in, but the API asks again. So a little help on this part would be much appreciated.
  5. Szia! Igen lehetséges hogy, egy adott resource indítja el a többi számodra nem szükséges resource-öket. Azt javaslom hogy próbáld meg a server.conf-ban hogy az összes resource listát kiveszed és mondjuk 1-2db resource-öt teszel a listába teszt jellegel amik mondjuk kelleni fognak, és így csináld mindegyikkel amely resource kell neked (igen hosszadalmas meló, de megéri ).. és ha mondjuk be tettél a listába új 1-2db resource-t de előtte nem indult el a többi ami nem kell.. Akkor tudod is a probléma forrását és a resource nevét amely elindítja az összes létező resource-t. Remélem tudtam neked segíteni!
  6. It should be for security concerns. You wouldn't want to visit a site that is designed to look for 'new functions' and starts call them. If you take a look at this page: https://wiki.multitheftauto.com/wiki/Meta.xml You can see that it is possible to call an export function over http What syntax do you need for calling an export function? http://<your IP>:<your port>/<resource_name>/call/<exported_function_name> https://wiki.multitheftauto.com/wiki/Resource_Web_Access How does authentication works? https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side A 'basic' authentication should the way to go. It requires login credentials of an MTA user account with the correct permissions. This has to be passed every request. When you connect through the browser: http://127.0.0.1:22005/resourcebrowser/ You more or less understand what to expect. There is also a section about 'Router', which is new. Might be useful. https://wiki.multitheftauto.com/wiki/Resource_Web_Access#Router For inspiration https://community.multitheftauto.com/index.php?p=resources&s=details&id=18781 This resource is about fetching data from MTA to a (remote) host. This is the opposite of what you are trying to achieve, but probably still useful. Fetching from MTA to remote host Creating a MTA user (installation_s.lua) that only has the correct permissions.
  7. Hey Everyone, I was creating my own framework from scratch, and I wanted to use CEFs as HUD's and obviously Login pages and stuff As I was going through, I wrote the perfect browser manager for myself, But for some reason, my events from the JS to LUA are not being triggered, Even tho I opened the dev console, and I saw that "window.mta" with the "triggerEvent" function inside that exists. So Idk, is this normal to not be able to trigger an event on a remote URL? And if not, I was thinking about the structure of how it should be, I know that if it's true, then I should be able to load my login/huds of the browsers somehow and let them connect to the server as well First Solution: - Load the remote login page -> React web page API calls to Backend -> Backend talks to MTA Server But obviously, how? The MTA doesn't provide us with any resources to at least create an API server on a server-side resource, so we can manage that, and it's impossible Or maybe you have an idea about what I can do in this solution 2nd Solution: - Load a local HTML Page that has an iframe inside it, set the iframe to max width and max height, load a JS file as well, and inside that JS file, provide a bunch of functions written, such as loadURL to change the URL of that iframe, etc. Now this custom HTML loads, works (at least fine, I have to change my frontend obviously, do not know if it's good to use for HUD's either. But it works, and in this solution, as I am writing this, I can't feel sorry for myself, But I don't know how to load that HTML File XD I have a resource called "[core]", inside this has a folder of resources called "browser", and inside that we have a folder called "ui" with index.html and other files inside it.And I have no idea how to load it, or even how the loading of the JS scripts should be written inside it If you can help me with my solution, and recommend me a way via this solution, I would appreciate it.
  8. Jogue no seu servidor com todos os scripts desativados (exceto os resources nativos). Então vá ativando um por um a cada hora até os controles do seu jogador forem desativados, assim você descobre qual resource está causando o problema.
  9. Yesterday
  10. someone can help i cant join all server
  11. Last week
  12. **الوحيد, والافضل** **بكسيس هوست** توفر خدمات السيرفرات بارخص الاسعار (نوفر الكريديت) مثل:- > Multi Theft Auto > San Andreas Multiplayer [SA:MP] > Discord Bots **انضم الينا الان, ولا تفوت الفرصة*** https://discord.gg/dj687D7GeV ||@everyone||
  13. Mozi.

    cd20 error

    same issue, cant fix it
  14. i help my friend and i think yea all server
  15. Is the same error occurring on every server?
  16. Bem tenho um servidor e ja esta na reta final so que me esta acontecendo um bug muito chato e bem aleatorio, em certos momentos o player perde acesso as teclas apenas pode usar f1,f2,f3 etc já wasd espaço shift etc fica bloqueado alguem sabe oque pode ser ?
  17. i join the server and It says "connection to the server was lost."
  18. No problem with script i can change the others but i have a problem with this one
  19. Проблема с репликатором сервера после обновления MTA : игрок , скачивающий машину , испытывает какой - то сбой и вылетает ( с ошибкой « засорение памяти » ) . Всё началось после выпуска сборки MTA с r23599 , на r23324 всё работало нормально . https://pastebin.mtasa.com/6844764744
  20. Earlier
  21. I installed MTA on my device, and when I try to connect to any server, I get a "Serial change/spoofer x5" error. I've never installed a spoofer, but it detects it somehow. I've tried reinstalling the system, installing MTA on different drives, etc. I've done some reading on the subject and think it might be caused by non-standard components or drivers. I have a Clevo laptop with a PC processor. I'm hoping for quick help. Best regards, Danji I installed MTA on my device, and when I try to connect to any server, I get a "Serial change/spoofer x5" error. I've never installed a spoofer (before this error I didn't know what it was) , but it detects it somehow. I've tried reinstalling the system, installing MTA on different drives, etc. I've done some reading on the subject and think it might be caused by non-standard components or drivers. I have a Clevo laptop with a PC processor.I don't know if it matters, but when I turn on the system for the first time after starting it, it crashes.I'm adding a few screanshots. I'm hoping for quick help. Best regards, Danji
  22. What do you mean? I've already reinstalled Windows. The MTA serial number hasn't changed.
  23. Reset your computer using a USB drive; this will definitely solve the problem.
  24. Hello, MTA Province does not use the official client, so we cannot provide assistance with the issues you are experiencing there. It may be worth trying to contact their team.
  25. I’m getting the “AC#4 Malicious activity” error when I try to join the server. I’ve already reinstalled Windows, but it didn’t fix anything. The Windows antivirus isn’t running, and stuff like Steam and Discord aren’t working either. Any idea what’s going on?
  26. Maybe because that negative ped id is not properly added in your resource
  27. Hi, i think there are some problem in the createPed function, i can create negative ID vehicles, but i cant create peds using a negative ID. i Try the exports methot and i get the same warning
  28. I'm a player of MTA Province and I got an error It tells me that my hard drive serial number matches. my hard drive number:B804-CD6D Please help me fix this here is the link to the error:https://postimg.cc/SnBBqmHg Tech support said you can fix this since it's your anti-cheat that's blocking me from the server.
  1. Load more activity
×
×
  • Create New...