Witam,bo mam taki problem ?e przerabiam panel logowania i jak klikam na gui kt?re mam to sie nie loguje tylko jest na starym miejsu a zmieni?em tak jak strzeba.
Jak by kto? m?g? poprowi? mnie.
Za pomoc daje
[lua]if getElementData(localPlayer, "player:uid") then return end
local root = getRootElement()
local resourceRoot = getResourceRootElement(getThisResource())
local screenWidth, screenHeight = guiGetScreenSize()
local screenW, screenH = guiGetScreenSize()
local blurStrength = 20
local myScreenSource = dxCreateScreenSource(screenWidth, screenHeight)
blurShader, blurTec = dxCreateShader("shaders/BlurShader.fx")
function renderblur()
if blur == true then
dxUpdateScreenSource(myScreenSource)
dxSetShaderValue(blurShader, "ScreenSource", myScreenSource);
dxSetShaderValue(blurShader, "BlurStrength", blurStrength);
dxSetShaderValue(blurShader, "UVSize", screenWidth, screenHeight);
dxDrawImage(0, 0, screenWidth, screenHeight, blurShader)
end
end
addEventHandler("onClientRender", root, renderblur)
addEventHandler("onClientResourceStop", resourceRoot,
function()
if (blurShader) then
destroyElement(blurShader)
blurShader = nil
end
end)
x,y=2313.58, 1282.80-- my width
intro_step=math.random(0,850)
local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }
function i... |