Finn_Neutro Posted April 17 Share Posted April 17 BHello, I come to ask for help, I have tried a thousand ways to avoid the export Blur error line so that it works correctly, all the ways I tried the panel ends up being non-functional and never appears, I tried to look for a "Blur" resource, and it only gave another mistake. The export blur error is: [ERROR]DsClient.lua:25: call: failed to call 'Blur:dxDrawBluredRectangle' [string "?"]. And without the "Blur" resource the error is this: DsClient.lua:25: exports: Call to non-running server resource (Blur) [string "?"]. Everything else works, only that error appears in the debugscript, and from what I investigated, it is to give a blurry background to the panel. local screenW, screenH = guiGetScreenSize() local resW, resH = 1360,768 local x, y = (screenW/resW), (screenH/resH) local DsDaFont = dxCreateFont("fonts/DsFont.otf", 13, true) local PainelRede = false local Alpha2 = 255 function Social() exports["Blur"]:dxDrawBluredRectangle(x*0, y*0, screenW, screenH, tocolor(255, 255, 255, alpha)) local Alpha = interpolateBetween(0,0,0,255,0,0,(getTickCount() - Alpha2)/500, "Linear") dxDrawRoundedRectangle(x*496, y*165, x*367, y*446, tocolor(13, 13, 14, 255), 7) dxDrawRoundedRectangle(x*503, y*175, x*353, y*38, tocolor(32, 31, 33, 255), 7) dxDrawRoundedRectangle(x*503, y*224, x*353, y*85, tocolor(31, 31, 32, 255), 7) dxDrawRoundedRectangle(x*671, y*246, x*170, y*41, tocolor(11, 11, 13, 255), 7) --copiar link dc dxDrawText("Copiar Link", x*702, y*255, x*140, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) --link discord dxDrawRoundedRectangle(x*503, y*320, x*353, y*85, tocolor(31, 31, 32, 255), 7) dxDrawRoundedRectangle(x*671, y*342, x*170, y*41, tocolor(11, 11, 13, 255), 7) --copiar link yt dxDrawText("Copiar Link", x*702, y*351, x*143, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) --link youtube dxDrawRoundedRectangle(x*503, y*416, x*353, y*85, tocolor(31, 31, 32, 255), 7) dxDrawRoundedRectangle(x*671, y*438, x*170, y*41, tocolor(11, 11, 13, 255), 7) --copiar link insta dxDrawText("Copiar Link", x*702, y*447, x*143, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) --link instagram dxDrawRoundedRectangle(x*503, y*512, x*353, y*85, tocolor(31, 31, 32, 255), 7) dxDrawRoundedRectangle(x*671, y*534, x*170, y*41, tocolor(11, 11, 13, 255), 7) --copiar link site dxDrawText("Copiar Link", x*702, y*543, x*143, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) -- link site dxDrawImage(x*506, y*173, x*40, y*40, "files/logo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Redes Sociales Del Servidor", x*558, y*183, x*230, y*22, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) dxDrawText("X", x*826, y*182, x*13, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) dxDrawImage(x*525, y*232, x*65, y*65, "files/discord.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(x*525, y*328, x*70, y*70, "files/yt.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(x*525, y*426, x*65, y*65, "files/insta.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(x*527, y*528, x*65, y*65, "files/site.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) if isCursorOnElement(x*671, y*246, x*170, y*41) then dxDrawRoundedRectangle(x*671, y*246, x*170, y*41, tocolor(137,0,250, Alpha), 7) dxDrawText("Copiar Link", x*702, y*255, x*140, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) --link discord elseif isCursorOnElement(x*671, y*342, x*170, y*41) then dxDrawRoundedRectangle(x*671, y*342, x*170, y*41, tocolor(137,0,250, Alpha), 7) --copiar link yt dxDrawText("Copiar Link", x*702, y*351, x*143, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) --link youtube elseif isCursorOnElement(x*671, y*438, x*170, y*41) then dxDrawRoundedRectangle(x*671, y*438, x*170, y*41, tocolor(137,0,250, Alpha), 7) --copiar link insta dxDrawText("Copiar Link", x*702, y*447, x*143, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) --link instagram elseif isCursorOnElement(x*671, y*534, x*170, y*41) then dxDrawRoundedRectangle(x*671, y*534, x*170, y*41, tocolor(137,0,250, Alpha), 7) --copiar link site dxDrawText("Copiar Link", x*702, y*543, x*143, y*24, tocolor(254, 255, 255, 255), x, DsDaFont, "left", "top", false, false, false, true, false) -- link site end end -- IGNORAR bindKey("F5", "down", function() --tecla abrir e fechar painel if PainelRede == false then addEventHandler("onClientRender", getRootElement(), Social) PainelRede = true showCursor(true) else removeEventHandler("onClientRender", getRootElement(), Social) PainelRede = false showCursor(false) end end) function discord (_,state) if PainelRede == true then if state == "down" then if isCursorOnElement (x*671, y*246, x*170, y*41) then --<script src = "assets/shared/config.lua" type = "shared" cache = "false"/> outputMessage("Discord Copiado Com Sucesso!!", "success") setClipboard("https://discord.gg/fbsdBTHGbV") --EDITAR AKI O LINK DO DISCORD DO SERVIDOR removeEventHandler("onClientRender", getRootElement(), Social) PainelRede = false showCursor(false) end end end end addEventHandler ("onClientClick", root, discord ) function Youtube (_,state) if PainelRede == true then if state == "down" then if isCursorOnElement (x*671, y*342, x*170, y*41) then --<script src = "assets/shared/config.lua" type = "shared" cache = "false"/> outputMessage("Link Youtube Copiado Com Sucesso!!", "success") setClipboard("https://www.youtube.com/c/SrDeltaYTofc") --EDITAR AKI O LINK DO YOUTUBE DO SERVIDOR removeEventHandler("onClientRender", getRootElement(), Social) PainelRede = false showCursor(false) end end end end addEventHandler ("onClientClick", root, Youtube ) function Instagram (_,state) if PainelRede == true then if state == "down" then if isCursorOnElement (x*671, y*438, x*170, y*41) then --<script src = "assets/shared/config.lua" type = "shared" cache = "false"/> outputMessage("Link Instagram Copiado Com Sucesso!!", "success") setClipboard("https://youtu.be/9R8uKW42QGQ") --EDITAR AKI O LINK DO INSTAGRAM DO SERVIDOR removeEventHandler("onClientRender", getRootElement(), Social) PainelRede = false showCursor(false) end end end end addEventHandler ("onClientClick", root, Instagram ) function Site (_,state) if PainelRede == true then if state == "down" then if isCursorOnElement (x*671, y*534, x*170, y*41) then --<script src = "assets/shared/config.lua" type = "shared" cache = "false"/> outputMessage("Link Site Copiado Com Sucesso!!", "success") setClipboard("https://deltascripts.store") --EDITAR AKI O LINK DO SITE DO SERVIDOR removeEventHandler("onClientRender", getRootElement(), Social) PainelRede = false showCursor(false) end end end end addEventHandler ("onClientClick", root, Site ) function dxDrawRoundedRectangle(x, y, rx, ry, color, radius) rx = rx - radius * 2 ry = ry - radius * 2 x = x + radius y = y + radius if (rx >= 0) and (ry >= 0) then dxDrawRectangle(x, y, rx, ry, color) dxDrawRectangle(x, y - radius, rx, radius, color) dxDrawRectangle(x, y + ry, rx, radius, color) dxDrawRectangle(x - radius, y, radius, ry, color) dxDrawRectangle(x + rx, y, radius, ry, color) dxDrawCircle(x, y, radius, 180, 270, color, color, 7) dxDrawCircle(x + rx, y, radius, 270, 360, color, color, 7) dxDrawCircle(x + rx, y + ry, radius, 0, 90, color, color, 7) dxDrawCircle(x, y + ry, radius, 90, 180, color, color, 7) end end function isCursorOnElement ( x, y, w, h ) local mx, my = getCursorPosition () local fullx, fully = guiGetScreenSize () cursorx, cursory = mx*fullx, my*fully if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true else return false end end Link to comment
FileEX Posted April 18 Share Posted April 18 The "Blur" resource does not have the dxDrawBluredRectangle function or it is not exported in meta.xml Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now