-
Posts
246 -
Joined
-
Last visited
-
Days Won
6
Everything posted by XaskeL
-
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.
-
re-upload please theme IA please
-
install windows sdk 8.1 https://developer.microsoft.com/ru-ru/windows/downloads/sdk-archive
- 4 replies
-
- compilation
- mta
-
(and 1 more)
Tagged with:
-
[C++] Can i use MTA functions in modules?
XaskeL replied to JeViCo's topic in Open Source Contributors
CLuaArguments args; args.PushString(szEventName); args.PushBoolean(true); args.Call(luaVM, "addEvent"); Like so I called once MTA functions -
проблема с LUA скриптом на передачу денег (Обменник)
XaskeL replied to mura7077's topic in Russian / Русский
Не уверен что я тот от кого ты ожидал это сообщение, но. Можешь попробовать мой код. Я его использовал чтобы работало окно ввода частоты 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) Но код придётся переделать тебе самому под себя -
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)
-
Oh. This nice work! How much does the performance of the Lua code fall?
-
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)
-
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).
-
setCameraMatrix event: onPlayerWasted or onClientPlayerWasted
-
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)
-
give me you discord
-
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
-
shader, change material texture/flash or pixel shader + gTime for flash.
-
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
-
Enable driver signing check. if not clear, then I can help you in Discord. Tutorial: https://www.technipages.com/enable-disable-device-driver-signing
-
dxGetTextWidth dxGetFontHeight use it ... or i did not understand what you need?
-
Describe the task more specifically
-
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.
-
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 );
-
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