Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. IIYAMA

    Alt+tab / windowbutton

    I found the problem. It wasn't related to MTA nor my drivers. I am using next to MSI Afterburner the program RivaTunerStatistics Server to showing my GPU's usage, fan speed and temperature. So I can keep an eye on them when playing arma 3, since they can get very hot(around the 90°C) while playing that game. It seems that was the problem. @Dutchman101 I am sorry for wasting your time.
  2. Use at least the "clamp" method. I also recommend you not to scaling your image. Just use the download-function to download the image which is matching the resolution, like a responsive website.
  3. Are you kidding me? How am I suppose to help you when you aren't correcting your code? I already said what you have to change, DO IT! hitElement has never been defined in the entire code, you can't expect it to be something. Use the predefined variable > client < instead.
  4. Line 51 and 58: if isElement( theVehicle[source]) then destroyElement(theVehicle[source]) theVehicle[source] = nil end if theVehicle[source] then if isElement( theVehicle[source]) then destroyElement(theVehicle[source]) end theVehicle[source] = nil end When vehicles get destroyed by another resource or they are included in a map, your system doesn't clean the table properly. Also your code is duplicated, it probably doesn't work because you have two times the same event handlers.
  5. triggerLatentClientEvent is a slow download progress. I will recommend you to increase the bandwidth and also check the status. https://wiki.multitheftauto.com/wiki/Ge ... ventStatus https://wiki.multitheftauto.com/wiki/Ge ... entHandles
  6. I said that the mta forum doesn't allow stretching, that doesn't mean mta can't stretch images. 1 super small image is better then 1 big images, with the same result. Read it better next time.
  7. Ever heard of the term responsive website? Since the new function DownloadFile has been released, you are able to make easy responsive content. Images are the key to custom effects. https://wiki.multitheftauto.com/wiki/DownloadFile Tip:(what you also can do) If you want create nice buttons which you want to resize, you may consider to create a gradient which is: 1 pixel width and 32* pixels height. You probably have to skip the round corners for this. IMAGE * just how good the quality must be. When you stretch the image.(forum doesn't allow it, so I copy past it a few times.)
  8. Delete samp, that's what you should do.
  9. You should not sold your maps/gave them away. Everything in mta gets ripped to the bone, nobody has rights.
  10. No there isn't, you have to make it yourself or request it at the resources section.
  11. 2 ways. - Get the pixels of the render target and get only the pixels you want. (you better not render the whole process this every frame unless you have a powerful gpu) https://wiki.multitheftauto.com/wiki/DxGetTexturePixels https://wiki.multitheftauto.com/wiki/DxGetPixelColor https://wiki.multitheftauto.com/wiki/DxCreateTexture https://wiki.multitheftauto.com/wiki/DxSetPixelColor https://wiki.multitheftauto.com/wiki/DxSetTexturePixels - Or render it with: (so you can cut your image like you want) https://wiki.multitheftauto.com/wiki/DxDrawImageSection The benefit of the first way is that you will render at a lower resolution, which can keep up the performance. The benefit of the second way is that you can update it every frame, but I still do not recommend full resolution.
  12. Yea, I got your point.
  13. I doubt that there are much people in mta, do know how to do that. If you are a mod maker, you will be quiet angry when you found that a kid just copied one of your mods out of their client folder and is using that without any permission. So giving a possible solution to keep it away from kids doesn't sounds like a bad idea, does it? Not that I will protect any mods, I am not a mod maker.
  14. try this: team1 = createTeam ( "Team A", 0, 255, 0 ) team2 = createTeam ( "Team B", 200, 0, 100 ) local changeTeam = function (player,key) if key == "F1" then setPlayerTeam(player,team1) spawnPlayer (player, 0, 0, 5, 0, 68, 0, 0) giveWeapon ( player, 31, 200 ) elseif key == "F2" then setPlayerTeam(player,team2) spawnPlayer (player, 0, 0, 5, 0, 212, 0, 0) giveWeapon ( player, 27, 200 ) end setCameraTarget(player) end function setCameraOnPlayerJoin() fadeCamera(source, true, 5) setCameraMatrix(source, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234,99.881813049316) bindKey(source,"F1","down",changeTeam) bindKey(source,"F2","down",changeTeam) end addEventHandler("onPlayerJoin", root, setCameraOnPlayerJoin)
  15. What xXMADEXx did is maybe a better solution duel the performance. Decoding large mods cost lots of time, you may get frame freezes or crashes. But if it is saver, that will always be the question. As continuous on this idea, when you use underscores it will be easy to fix. But when you copy a part of the existing code and copy that, you will never know that it is differed. By deleting an amount of extra characters. (like 10 in the beginning and 10 at the end) You will have your perfect decoded mod. Example: (original mod) éL>éÇOéòÅé-¬éÈ The corrupt one: (copied 4 in the beginning and 4 at the end) éL>ééL>éÇOéòÅé-¬éÈ-¬éÈ
  16. You can make it as hard as you want. It will be pity hard to read out variables and knowing the use of them, if you based the key on a combination of two/more variables you probably will give him a headache.
  17. @LaCosTa You are creating for every player his own functions. It isn't really necessary to give the garbage collector more work.
  18. Can't you only use the player matrix?
  19. engineSetModelLODDistance
  20. Try a higher value then 300, so you are 100% sure it will be forcing the object to be visible. A value 400 like will reduce the chance that it will drop lower then 300.
  21. What if that is the only object in your map? Will it still be invisible?
  22. IIYAMA

    Alt+tab / windowbutton

    @Dutchman101 Thank you very much for explaining so much. I did all the steps and extra steps, but unfortunately no changes. Mta works or doesn't work when I make those changes. It is probably because of the driver update and because I am use crossfire, I will have to wait till they fix it. The only strange thing I noticed is that MTA doesn't require the gta_sa.set It is starting up without recreating it. Instead it is probably saved in: MTA San Andreas 1.4\MTA Since I have to destroy that folder to debug it. Settings are saved in: coreconfig.xml
  23. Happy new year everybody!
  24. IIYAMA

    Alt+tab / windowbutton

    I fixed it by deleting the folders: (and reinstall mta) - mods - MTA It seems my pc doesn't like mta running in window mode. The problem of not able to use alt+tab and windowbutton still remain. Are they working correctly for you?
  25. Of course it is, 3de argument: streamedIn: If true, function will only return elements that are streamed in. https://wiki.multitheftauto.com/wiki/GetElementsByType
×
×
  • Create New...