Rat32
Members-
Posts
121 -
Joined
-
Last visited
Everything posted by Rat32
-
Hello! I have shader (Gauss Blur), and I must draw it only on part of my image. For example: https://i.imgur.com/80mrBFa.png In MTA I must blur white section, but black section of image leave alone. It is possible?
-
Ok. But I have other question - is the way to get which gui is on top, on second etc?
-
Hello. Is the way to get element tree of gui? For example I have a GUI window, tab panel and two buttons in tab panel. I must get tree of root elements like this: Window (root) --> Tab Panel --> Button, Button
-
Best solution and thanks for you!
-
Hello community, I have for example texture created by dxCreateTexture (simple image). I have to connect it to second texture and make one texture. Like adding a layers in Gimp/Photoshop. It is possible?
-
Hello. This server specification should work good at 100 slots on MTA server?
-
Hello. I need small problem with my MTA. I FORMATED PC when I saw this problem, but is still anooying. When I'm in ALT+TAB in Notpead++ or another program more than maybe 2 minutes my MTA "Crashing". Screen is blocked, sounds are working (when i prees for example F my ped will enter to vehicle, but only in sounds, screen is frozen). This problem showing in window mode, in fullscreen is more funny - he blocks my Windows and I must restart my PC. I have green screen (but this is my template color, I have windows 8). I can only move me with ALT+TAB to desktop, but I can't have window start bar and I can't ALT+TAB to another program. Sorry for my bad English.
-
Dodawanie pojazdów na serwer MTA
Rat32 replied to ZnajomyNieznajomy's topic in Pomoc ze skryptami i programowaniem w Lua
Jeżeli jesteś obeznany w programowaniu oraz w działaniu aplikacji to teksturę podmienisz tworząc najprostszy shader na podmianę tekstury. texture Texture; technique setTexture { pass P0 { Texture[0] = Texture; } } Potem używając funkcji engineApplyShaderToWorldTexture nakładasz na autko robiąc synchronizację i to wszystko. W razie pytań pytaj w poście. -
I saw this bug too. In my screen player2 shooted me with fists when he had M4.
-
Hello. Does this VPS should run MTA Server and website with IPB 4.x? (MTA 120 slots max). //Suppose is script on server is optimal.
-
-- Trailer sync function trailerSyncTimers[client] = setTimer(function(client) trailerSyncTimers = { } -- Sync first truck trailer if there is any if vehicles and vehicles[client] and isElement(vehicles[client]) and isElement(getElementData(vehicles[client], "GTWvehicles.attachedTrailer")) then local tx,ty,tz = getElementPosition(getElementData(vehicles[client], "GTWvehicles.attachedTrailer")) local trx,try,trz = getElementRotation(getElementData(vehicles[client], "GTWvehicles.attachedTrailer")) setElementData(getElementData(vehicles[client], "GTWvehicles.attachedTrailer"), "GTWvehicles.trailer.location", toJSON({tx,ty,tz, trx,try,trz})) else killTimer(trailerSyncTimers[client]) end -- Sync first truck trailer if there is any if trailers and trailers[client] and trailers[client][1] and isElement(trailers[client][1]) and isElement(getElementData(trailers[client][1], "GTWvehicles.second_trailer")) then local tx,ty,tz = getElementPosition(getElementData(trailers[client][1], "GTWvehicles.second_trailer")) local trx,try,trz = getElementRotation(getElementData(trailers[client][1], "GTWvehicles.second_trailer")) setElementData(getElementData(trailers[client][1], "GTWvehicles.second_trailer"), "GTWvehicles.trailer.location", toJSON({tx,ty,tz, trx,try,trz})) end end, 250, 0, client) Same. I don't want to request you to write script for me, but my ideas ended - sorry.
-
Very thanks. Hmm, your code generating errors, "attempt to index global "trailerSyncTimer" in line 6", I tried to download and modify code from github pasted for you, but still not work. I don't have idea to fix this code. Any ideas/fixes?
-
Ough, still bugged :/. Any idea?
-
Hello. In one server trailers is fixed, not bugged. In clear MTA trailers is lagged. Anybody have idea to fix them with script?