Jump to content

megaman54

Members
  • Posts

    245
  • Joined

  • Last visited

Everything posted by megaman54

  1. How should i begin to script them? Like how can i calculate the traveled distance on foot?
  2. I need these two stats but from my testing i have noticed that they do not work like in single player. Advice would be appreciated on how i can make them work.
  3. Thanks! Now it all makes much more sense. Hooking has always been somewhat confusing to me Thanks again.
  4. I have been studying around the MTA source code lately and i'm kinda confused about the HookInstall function. What does the last parameter called iJmpCodeSize do? How do i know what to put in that argument? Another question is, how to use the HookInstallMethod and HookInstallCall functions? They have same arguments but different implementation code so i dont know how to use them. Thanks in advance!
  5. Well its still a fun challenge to try host something on it.
  6. Good luck I currently dont have enough freetime to test it but i will at some point. Tell me if you succeeded at it
  7. Great! Then i certainly have chances to success!
  8. Yes i mean that. And i'm quite sure i need to compile the server for ARM before i can use it.
  9. Try /srun aclReload()
  10. Would it be possible to compile and run an MTA server on Raspberry Pi? I have a B model of it and i'm willing to try compiling and running a mta server on it
  11. This is not related to scripting. Its related to mta source code and how it handles file checking.
  12. I'd like to know what algorithm is used to check if a client side resource file has been modified on the client machine and wether it needs to be redownloaded or not.
  13. Thats what im doing already. See code in original post: https://forum.multitheftauto.com/viewtopic.php?f=91&t=60806&sid=ada856ec7f87816253df745c4ce7276f#p579319
  14. Yes something like that but 2D. Isn't there anyway to scale them in 2D?
  15. I will try dividing the distance. Thanks EDIT: well it dint really wrok, the line goed to wroing direction when i moved..
  16. But i prefer dxDrawLine because its already 2D.
  17. Hi all! I'm trying to make a box ESP script but i have problems with the lines being too big. Here is 2 pics to help understand the problem: Here everything is nice when i'm close to the ped: But here the lines are too big when i'm far away: Here is my code so far: function render() for i,v in ipairs(getElementsByType("ped"))do local x1,y1,z1 = getElementPosition(localPlayer) local x2,y2,z2 = getElementPosition(v) local fDistance = getDistanceBetweenPoints3D(x1,y1,z1,x2,y2,z2) if(v ~= localPlayer)then local sx,sy = getScreenFromWorldPosition(x2,y2,z2) dxDrawLine(sx-80, sy-200, sx-80, sy+200, tocolor(255, 0, 0, 255), 2) dxDrawLine(sx-80, sy-200, sx+80, sy-200, tocolor(255, 0, 0, 255), 2) end end end addEventHandler("onClientRender", root, render)
  18. ye thx now it works.
  19. Hello, i have a problem with some images in mta, theres nothing wrong with them but the console tells me "file "imagnameblabla.png" is invalid and it works inside the script, but this thing is really anoying because it spam the console. How can i fix this?
  20. https://community.multitheftauto.com/index.php?p=resources&s=details&id=6898 Again this guy cheated the votes. Maybe ban him? DONE
  21. https://community.multitheftauto.com/index.php?p=resources&s=details&id=6893 This guy probably cheated his 5/5 votes. DONE
  22. Can you help me with that?
  23. Thx! Maybe you can tell me how you copy it so i can do it in the future myself? And how to make the search work? Is that even possible?
  24. Does anyone have a fresh copy of the MTA Wiki? Or if someone could tell me how could i make one so i could host it on my local net for a while because our net will be down for some time and then i wont have access to the wiki Thanks in advance!
  25. When i try to run a custom build of mta server i get error about missing net.dll in the server directory but im 100% sure it is there. version.h things are set to VERSION_TYPE_RELEASE Here is copy&paste of the error: MTA:BLUE Server for MTA:SA Loading library C:\Program Files\MTA San Andreas 1.3\server\net.dll failed ERROR: Loading network library (net.dll) failed! Press Q to shut down the server!
×
×
  • Create New...