Jump to content

Gallardo9944

Members
  • Posts

    442
  • Joined

  • Last visited

Everything posted by Gallardo9944

  1. You can fetchRemote your images every time. I don't think this is really suitable for players with low-new solutions. I'd suggest you to teaEncode the data after doing fetchRemote and flush it on disk. Then, if file exists, just read it and teaDecode it (don't forget it's binary)
  2. Is OOP enabled on the server?
  3. Take simple texture replacement shader, put an image into it as a texture (dxSetShaderValue), then do dxSetShaderTransform. Then dxDrawImage the shader.
  4. I suggest you not to use trigger(Latent)ClientEvent for sending files. It's very CPU intensive. Better fetchRemote clientside
  5. From what I know, only MTA Eir is able to do that. https://wiki.multitheftauto.com/wiki/MT ... /functions Here is the module for older MTA versions: https://wiki.multitheftauto.com/wiki/Modules/FileSystem Never tested it though, so can't be sure if it works properly with 1.4.1
  6. Уже добавили. Само собой. Имелся ввиду сам полный релиз 1.5, который всё ближе и ближе. Хотя этот браузер, мне кажется, будет использовать каждый второй по назначению "ВКОНТАКТИК ПОКА НЕ РЕСПНУЛСЯ", а не для чего-то более интересного.
  7. В 1.5 собираются добавить веб браузер, так что теоретически теперь интерфейсы можно будет писать на яваскрипте, со всем вытекающим (с памятью, я так полагаю, тоже)
  8. local info = "http://er-mta.net" local key = "somewordshere" local encrypted = teaEncode(info,key) outputChatBox(encrypted) -- will output hashed line, in this example: QfHxIWo2bp2J4rUr4rnPcboBG84R0KJ0 local decrypted = teaDecode(encrypted,key) -- decrypt with the same key outputChatBox(decrypted) -- will output "http://er-mta.net" That's the basic example. Encrypt it and then fileWrite. You can decrypt your file and use engineLoadDFF(decrypted) with that string you got. This way, you better use: function teaEncodeBinary( data, key ) return teaEncode( base64encode( data ), key ) end function teaDecodeBinary( data, key ) return base64decode( teaDecode( data, key ) ) end Not really. It supports raw data since 1.4.1 r7088
  9. Sometimes it doesn't work as I tried along time ago Works perfectly for me. Also, you can check vehicle lights shader as an example, downloadable in community.multitheftauto.com
  10. you can setElementData to players you want to have the shader (serverside) and then apply/remove the shader to/from the players (clientside) using onClientElementDataChange event
  11. local players = getElementsByType("player") for i,v in ipairs(players) do if i % 2 == 0 then -- assign to first team else -- assign to second team end end
  12. Gallardo9944

    [Solved]

    setElementDimension to anything than 0 will hide an object, setElementDimension to 0 will show it up. Not a new idea though, been using it on my server for half a year already.
  13. At least you made an amazing ghost shader
  14. call doesn't allow you to export OOP functions. You have to create replacements and export them (like "myFunction = myData:function" and the export myFunction)
  15. downloadFile https://wiki.multitheftauto.com/wiki/DownloadFile
  16. Gallardo9944

    Gridlist

    You can manually make a gridlist with DX or just use any dx library to make that easier.
  17. Making such a long chain is not really necessary. You can make multiple basic functions (e.g. i have setProfileData, getProfileData, giveProfileData (for numbers), takeProfileData (for numbers) and others) and operate with them in an export. Callbacks and other things become useless then.
  18. Hello. I'm a complete idiot in terms of making shaders, so i'll ask here. I've got this shader: texture TXT; technique tech { pass p0 { Texture[0] = TXT; } } And i put a texture inside the shader this way: dxSetShaderValue(shader,"TXT",myTextureOrTarget) So my question is: how can apply colour tinting to myTextureOrTarget in the shader? I'd like it to work this way: dxSetShaderValue(shader,"r",255) dxSetShaderValue(shader,"g",0) dxSetShaderValue(shader,"b",255) And when i draw the shader, the myTextureOrTarget becomes pink (as in this example), the same way as if i drew it with tocolor(255,0,255,255) argument outside of the shader Any suggestion is appreciated. Thanks
  19. You can also use a NOSQL method, saving a file per clan. But SQL seems to be easier to manage and maintain so I'd personally support Solidsnake14. Be aware of possible injections though
  20. getElementMatrix The page of the function includes useful functions which will help you.
  21. You can math.ceil or math.floor (or math.round if you make it) your font scale so it doesn't look that bad.
  22. Don't forget that using cache="false" will change your script load order in some situations. So keep that in mind.
×
×
  • Create New...