XaskeL

Members
  • Content Count

    228
  • Joined

  • Last visited

  • Days Won

    3

XaskeL last won the day on October 17 2019

XaskeL had the most liked content!

Community Reputation

51 Popular

6 Followers

About XaskeL

  • Rank
    Trick
  • Birthday 25/02/2002

Details

  • Gang
    Russian Boy!
  • Location
    Taiga
  • Occupation
    Vodka, Bear!
  • Interests
    Balalaika

Recent Profile Visitors

2,830 profile views
  1. You must remove all references to the buffer variable and call "collectgarbage ()" after replacing the model, thereby freeing memory from unused data in the variables
  2. I want put out it on github. If you add server events and some functions for exports, then we can give people a good enough bone_attach
  3. I caught trend and I'm working on optimize bone_attach. 1000 objects in stream:
  4. XaskeL

    [HELP] SHADER

    https://community.multitheftauto.com/?p=resources&s=details&id=16502
  5. https://en.wikipedia.org/wiki/Anisotropic_filtering
  6. Link for download working example (Click Here)
  7. -- example [1]: CGlitch:show(500); -- example [2]: CGlitch.show(CGlitch, 500); -- params: @self (table CGlitch), 500 (time in milliseconds or false for permanently drawing) show = function(self, fTime) -- create screen source & shader if not self.Shader then self.MyScreenSource = dxCreateScreenSource(CGlitch.ScreenSize[1], CGlitch.ScreenSize[2]); self.Shader = dxCreateShader(SHADER_CODE); -- set default parametres dxSetShaderValue(self.Shader, 'GlitchPower', self.GlitchPower); dxSetShaderValue(self.Shader, 'myScreenSource', self.MyScreenSource); end -- set work time if fTime then self.fTime = getTickCount() + fTime; else self.fTime = false; end -- create event handlers if (not self.AlreadyHandlered) then addEventHandler('onClientPreRender', root, CGlitch.update); addEventHandler('onClientHUDRender', root, CGlitch.draw); self.AlreadyHandlered = true; end end; I forgot to add check, replace code this function.
  8. I writted shader for you. Code for client.Lua: local SHADER_CODE = base64Decode("AQn//sQCAAAAAAAABQAAAAQAAAAcAAAAAAAAAAAAAAABAAAADwAAAG15U2NyZWVuU291cmNlAAADAAAAAAAAAFAAAABcAAAAAAAAAAEAAAABAAAAAAAAAAYAAABnVGltZQAAAAUAAABUSU1FAAAAAAMAAAACAAAAxAAAAOAAAAAAAAAABAA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QABAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB2c18yXzAATWljcm9zb2Z0IChSKSBITFNMIFNoYWRlciBDb21waWxlciA5LjI3Ljk1Mi4zMDIyAFEAAAUEAA+gAACAPwAAAAAAAAAAAAAAAB8AAAIAAACAAAAPkB8AAAIFAACAAQAPkAQAAAQAAA+AAAAkkAQAQKAEABWgCQAAAwAAAcAAAOSAAADkoAkAAAMAAALAAADkgAEA5KAJAAADAAAEwAAA5IACAOSgCQAAAwAACMAAAOSAAwDkoAEAAAIAAAPgAQDkkP//AAD/////AwAAAAAAAAAAAAAAAQAAAA8AAABteVNjcmVlblNvdXJjZQAA") -- export to mta and writted code by: XaskeL -- shader code from glsl by: Coolok CGlitch = { GlitchPower = 0.001; -- Glitch Power (0.0f to 1.0f); ScreenSize = { guiGetScreenSize() }; -- default screen size -- example[1]: CGlitch:destroy() -- example[2]: CGlitch.destroy() -- function for destroy glitch effects destroy = function(self) if CGlitch.AlreadyHandlered then removeEventHandler('onClientHUDRender', root, CGlitch.draw); removeEventHandler('onClientPreRender', root, CGlitch.update); CGlitch.AlreadyHandlered = false; end if self.Shader then destroyElement(self.Shader); self.Shader = false; end if self.MyScreenSource then destroyElement(self.MyScreenSource); self.MyScreenSource = false; end return true; end; -- function for update screen source update = function() if CGlitch.MyScreenSource then dxUpdateScreenSource(CGlitch.MyScreenSource); end end; -- function for draw glitch effect draw = function() if CGlitch.Shader then dxDrawImage(0, 0, CGlitch.ScreenSize[1], CGlitch.ScreenSize[2], CGlitch.Shader) end if (CGlitch.fTime and CGlitch.fTime < getTickCount()) then CGlitch:destroy(); end end; -- example [1]: CGlitch:show(500); -- example [2]: CGlitch.show(CGlitch, 500); -- params: @self (table CGlitch), 500 (time in milliseconds or false for permanently drawing) show = function(self, fTime) -- create screen source & shader self.MyScreenSource = dxCreateScreenSource(CGlitch.ScreenSize[1], CGlitch.ScreenSize[2]); self.Shader = dxCreateShader(SHADER_CODE); -- set default parametres dxSetShaderValue(self.Shader, 'GlitchPower', self.GlitchPower); dxSetShaderValue(self.Shader, 'myScreenSource', self.MyScreenSource); -- set work time if fTime then self.fTime = getTickCount() + fTime; else self.fTime = false; end -- create event handlers if (not self.AlreadyHandlered) then addEventHandler('onClientPreRender', root, CGlitch.update); addEventHandler('onClientHUDRender', root, CGlitch.draw); self.AlreadyHandlered = true; end end; }; --[[ example: CGlitch:show(500); -- show 500 ms --]] --[[ example: CGlitch:show(false); -- show permanently addCommandHandler('disableglitch', function() CGlitch:destroy(); end ) --]] Example for use: local MarkerPos = { x = 0.0; y = 0.0; z = 0.0; }; local theMarker = createMarker(MarkerPos.x, MarkerPos.y, MarkerPos.z, "cylinder", 1.5, 255, 255, 0, 170) addEventHandler('onClientMarkerHit', theMarker, function() CGlitch:show(500); end); Screenshot:
  9. Show example, please
  10. set script type "shared" in xml. example: <meta> <script src="table.Lua" type="shared" cache="false"/> </meta>
  11. Hey. Do not try to hack my development. You spoil the life of people who want to have the privacy of their assets.
  12. Completely finished code, as well as an example of use inside. Also, a resource is ready to download protected files (loader). Link: https://www.dropbox.com/s/0cpkkuwjdqa6nvt/protection dff %26 txd files example.rar?dl=0
  13. It is worth testing. And the key is what you encrypt your file and decrypt, it is advisable to come up with it yourself. After that, you need to encrypt the models and in the client-side decrypt in RAW and load.