Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/12/20 in all areas

  1. Hi, From what I understand it's giving a heads up that the Nightly version of MTA has better memory usage. Memory may be an issue on the server you're playing on, so it would make sense that they are recommending you to update your MTA. https://nightly.multitheftauto.com/
    1 point
  2. Hey, as a part of my hosting company, i started to migrate everything to docker. For this, i made a basic docker image and I decided to make it public. Info on how to use it is in the repository. Pull Requests are welcome! Enjoy! Docker Hub: https://hub.docker.com/r/ciber96/mtasa-docker Github Repo: https://github.com/ciber96/mtasa-docker
    1 point
  3. Huh, thank you! I use Ceeser's xmldata script to save to xml, and now with the new method the xml save does not work i got this warning: warning: checkDataType for xmlSaveData - MTA elements should be stored since they have a temporary ID! Got userdata wth? this is my code: local xml = exports.xmldata function teszt(thePlayer) local object=getElementsByType("object") for element, data in pairs(menteshez) do if not isElement(element) then menteshez[element] = nil end end for k, v in ipairs(object) do if getElementData(v,"owner") == thePlayer then local x,y,z = getElementPosition(v) local id = getElementModel(v) local int = getElementInterior(v) local dim = getElementDimension(v) local Rx,Ry,Rz = getElementRotation ( v ) outputChatBox("saved") menteshez[v] = {x,y,z,id,owner,int,dim,Rx,Ry,Rz} end end xml:xmlSaveData("save", menteshez, false, true) end addCommandHandler("save",teszt)
    1 point
  4. You could link them together like this: for k, v in ipairs(object) do if getElementData(v,"owner") == thePlayer then --[[ ... ]] menteshez[v] = {x,y,z,id,int,dim,Rx,Ry,Rz} --insert/overwrite end end -- clean up for element, data in pairs(menteshez) do if not isElement(element) then menteshez[element] = nil end end -------- -- or -- -------- menteshez = {} -- reset for k, v in ipairs(object) do if getElementData(v,"owner") == thePlayer then --[[ ... ]] table.insert(menteshez, {x,y,z,id,int,dim,Rx,Ry,Rz}) end end Both formats have their own benefits.
    1 point
  5. Hi and welcome to the forums, @Mongou Your thread has been moved to the Portuguese Coding forum section for best results, as the International Scripting Tutorials section is only for tutorials that we approve. On topic, yes it is possible to do what you're asking, but I've been let know by someone who's used it that it can be very bad on performance, and of course this gets worse for more detailed models and textures. For more help I invite someone else to weigh in as I am not very knowledgeable on coding.
    1 point
  6. it's been a long time, finally I have decided to spend few days on the MTA code to make it compatible with new limits. The FLA does the work once, when proxy_gtasa.exe gets run. Limits can be changed once per process launch. Instability - the FLA has been designed very carefully and any errors in the FLA are completely unacceptable. Tested over many, many thousand computers all over the world. A bit of MTA code had to be changed to work with new ID limits and world map limits and it was also done in a proper way. Some ASM code had to be changed. @Saml1ermay have been working a bit on it, but he implemented only the simplest limits probably. The simple limits have never been the problem. They could be changed by the MTA team if there were such a need. Now the FLA also offers the possibility of changing the complicated limits, which took months of work to alter. I was editing the newest version probably. I've done it over TeamViewer on the computer of someone else.
    1 point
×
×
  • Create New...