Jump to content

XaskeL

Members
  • Posts

    246
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by XaskeL

  1. XaskeL

    3d modelling

    I am looking for a 3d modeler capable of modifying a 3d model and cutting it down to 150,000 polygons and using as few vertices as possible. save a square grid with the correct topology and model geometry. For gta:sa single, IVF. I'll pay for it.
  2. re-upload please theme IA please
  3. install windows sdk 8.1 https://developer.microsoft.com/ru-ru/windows/downloads/sdk-archive
  4. CLuaArguments args; args.PushString(szEventName); args.PushBoolean(true); args.Call(luaVM, "addEvent"); Like so I called once MTA functions
  5. XaskeL

    /fp

    In the Russian community, many who noticed similar. this is true.
  6. Не уверен что я тот от кого ты ожидал это сообщение, но. Можешь попробовать мой код. Я его использовал чтобы работало окно ввода частоты GPS в моём моде в 2015 году. addEventHandler("onClientGUIChanged", frequencyEdit, function() local changedStr = frequencyEdit:getText() local str = changedStr:gsub("(%D+)",""):sub(1,4) -- укажешь нужную длину / кол-во символов, у меня 4 if str ~= changedStr then frequencyEdit:setText(str) end end,false) Но код придётся переделать тебе самому под себя
  7. addEventHandler("onClientRender",getRootElement(), function() if getPedMoveState(localPlayer) == "sprint" and getKeyState("space") and not localPlayer:getData("brokenbone") then setPedControlState("sprint",not getPedControlState("sprint")) end end) my script from 2015 year. use this in client.lua (clientside script)
  8. Oh. This nice work! How much does the performance of the Lua code fall?
  9. use timestamp getRealTime().timestamp + (86400*31) // 31 day, 1 day = 86400 sec addEventHandler("onPlayerLogin", root, function(previousAccount, account) if timestamp in server < timestamp in db then return kickPlayer(source) end end)
  10. This script is public release in russia community!!! this script have very horrible code
  11. serial: E7CC7EE9AF46CE1D847EB024A35E1F71 I repent of all sins. I really want to play, seriously. I am ready to bear the punishment, but I ask you not to even take it off, but to make it temporary, because I realized what I did. ccw told me to write a month later and that only you can unban (dutchman101).
  12. setCameraMatrix event: onPlayerWasted or onClientPlayerWasted
  13. local screenWidth, screenHeight = guiGetScreenSize() local firstShader = dxCreateShader("shader2.fx") local secondShader = dxCreateShader("shader.fx") local screenSource = dxCreateScreenSource(screenWidth, screenHeight) local blurAmount = 50 local uvAmount = 400 local blendAmount = 6 function onClientRender() dxUpdateScreenSource(screenSource) dxSetShaderValue(firstShader, "colorAmount", 0.50) dxSetShaderValue(firstShader, "coloredTexture", screenSource) --dxDrawImage(0, 0, screenWidth, screenHeight, firstShader) dxSetShaderValue(secondShader, "ScreenSource", firstShader) dxSetShaderValue(secondShader, "OverlayTexture", result) dxSetShaderValue(secondShader, "BlurStrength", blurAmount) dxSetShaderValue(secondShader, "UVSize", screenWidth - uvAmount, screenHeight - uvAmount) dxSetShaderValue(secondShader, "Blend", blendAmount) dxDrawImage(0, 0, screenWidth, screenHeight, secondShader) end addEventHandler("onClientRender", getRootElement(), onClientRender)
  14. XaskeL

    SD #15 SIGN

    give me you discord
  15. input "shader" to "shader" for blur and output result "dxDrawImage(...,shader)" local grayShdr = ... dxSetShaderValue(grayShdr, "ScreenSource", screen); local blur = ... dxSetShaderValue(blur, "ScreenSource", grayShdr) dxDrawImage(..., gray) or use pass0, pass1 in shader
  16. shader, change material texture/flash or pixel shader + gTime for flash.
  17. XaskeL

    SD #15 SIGN

    You have lost the inscription on the right in the bottom of the monitor "Test Mode"? Also enable Secure Boot in BIOS if it is disabled
  18. XaskeL

    SD #15 SIGN

    Enable driver signing check. if not clear, then I can help you in Discord. Tutorial: https://www.technipages.com/enable-disable-device-driver-signing
  19. XaskeL

    help move back

    dxGetTextWidth dxGetFontHeight use it ... or i did not understand what you need?
  20. Describe the task more specifically
  21. XaskeL

    xml vs json

    JSON is simpler, but it has its limits and data size. For example, I was faced with the fact that JSON returned an empty table from a very large JSON. Here for each situation individually. Personally, I would prefer to write something small in JSON. In other cases, come up with something more rational.
  22. test it client.lua: SHADER_CODE = [[ texture GrayscaleTexture; sampler screenSampler = sampler_state { Texture = <GrayscaleTexture>; }; float4 main(float2 uv : TEXCOORD0) : COLOR0 { float4 Color; Color = tex2D( screenSampler , uv); Color.rgb = round((Color.r+Color.g+Color.b)*10.0f)/30.0f; Color.r=Color.rgb; Color.g=Color.rgb; Color.b=Color.rgb; return Color; }; technique Grayscale { pass P1 { PixelShader = compile ps_2_0 main(); } } ]] local scx,scy = guiGetScreenSize() local screenSource = dxCreateScreenSource(scx,scy) local shader = dxCreateShader(SHADER_CODE) addEventHandler('onClientHUDRender', root, function() dxUpdateScreenSource(screenSource, true) dxSetShaderValue(shader, 'GrayscaleTexture', screenSource) end ); addEventHandler('onClientRender', root, function() dxDrawImage(0,0,scx,scy,screenSource) end );
  23. change color in Color.rgb = round((Color.r+Color.g+Color.b)*10.0f)/30.0f; // gray Color.r=Color.rgb; // here Color.g=Color.rgb; // here Color.b=Color.rgb; // here // example Color.r *= 1.10; // here Color.g *= 1.10; // here Color.b *= 1.10; // here
×
×
  • Create New...