Jump to content

All Activity

This stream auto-updates

  1. Today
  2. Yesterday
  3. 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
  4. I managed to solve this error, I'm not sure if I'm doing it correctly. addCommandHandler("globalchat", function(player, _, ...) if (configVar.globalchat) then local string globalAccount = table.concat({...}) if exports.adblock:isAdvertisement(globalAccount) then outputChatBox("#880808[Warning!] #D3D3D3Advertising is not allowed, further doing so can result in getting banned!.", source, 211, 211, 211,true) return; end if isPlayerMuted(player) then outputChatBox(getLanguageTextServer("clientinfotext43",player), player, 136,8,8); return; end if (getElementData(player,"antichat")) then outputChatBox(getLanguageTextServer("clientinfotext41",player), player, 136,8,8); return; else setElementData(player,"antichat",true) setTimer(setElementData, 1000, 1, player, "antichat", false); end for _,v in ipairs(getElementsByType("player")) do outputChatBox("#880808[Global] #D3D3D3"..getPlayerName(player):gsub("#%x%x%x%x%x%x", "").."#D3D3D3: "..table.concat({...}, " "):gsub("#%x%x%x%x%x%x", ""), v, 255, 255, 255, true); end end end);
  5. Hi my apologies for bumping this old threat, however I am having problem using the export. addCommandHandler("globalchat", function(player, _, ...) if (configVar.globalchat) then if exports.adblock:isAdvertisement(message) then outputChatBox("#880808[Warning!] #D3D3D3Advertising is not allowed, further doing so can result in getting banned!.", source, 211, 211, 211,true) return; end if isPlayerMuted(player) then outputChatBox(getLanguageTextServer("clientinfotext43",player), player, 136,8,8); return; end if (getElementData(player,"antichat")) then outputChatBox(getLanguageTextServer("clientinfotext41",player), player, 136,8,8); return; else setElementData(player,"antichat",true) setTimer(setElementData, 1000, 1, player, "antichat", false); end for _,v in ipairs(getElementsByType("player")) do outputChatBox("#880808[Global] #D3D3D3"..getPlayerName(player):gsub("#%x%x%x%x%x%x", "").."#D3D3D3: "..table.concat({...}, " "):gsub("#%x%x%x%x%x%x", ""), v, 255, 255, 255, true); end end end);
  6. i'm the server owner, what resource could do this potentially? there's many mods and vehicles and skins. i guess that's a GTA limit because server's host is super powerful as i said. now this crash: Version = 1.6-release-22388.0.000 Time = Wed Apr 17 20:53:36 2024 Module = Z:\Games\MTA San Andreas 1.6\mods\deathmatch\client.dll Code = 0xE06D7363 Offset = 0x003DFC28 EAX=0177F538 EBX=19930520 ECX=00000003 EDX=00000000 ESI=00018E71EDI=5D6FFC28 EBP=0177F590 ESP=0177F538 EIP=7733FAE2 FLG=00000212CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
  7. that's a server problem, but idk what resource exactly makes this happen, if it's not the low ram of the server then it's a bad resource
  8. No problem, grad to help you can request to close this thread to admins if nothing else is needed
  9. No problem, nothing happened. Now it adds and subtracts money smoothly, but after exceeding the maximum amount (99999999) the amount is 100000000. I added it to the code (math.min)
  10. Out of video memory. This can happen on servers with unoptimized mods and (faulty) scripts that abuse video memory, or even when you have a powerful graphics card in case the stuff on a server is extremely unoptimized so that it starts hitting GTA limits. If you have a powerful graphics card and more players suffer from this crash type, inform the server owner of this problem as it probably means their scripters & designers don't know what they are doing.
  11. pedro157

    Help

    Hi my name and dawn I've been developing for mta for 1 year and during that time I've never learned how to use absolute resolution creating panel in dx at a certain resolution it looks great in its chosen places only that in lower resolution the panel is below the chosen one I use it in my resources screen = Vector2 (guiGetScreenSize()) screenBase = Vector2 (1920, 1080) wanted to learn how to leave my, panel in its given place
  12. What do you mean by wheel type?
  13. Read this https://wiki.multitheftauto.com/wiki/Script_security and don't buy anything
  14. Desculpe, não entendi, você pode me dar um exemplo.
  15. Thank you very much man!
  16. Hello Is there something I should do on my server to prevent (Lua executor) cheats from happening?
  17. Last week
  18. mta has to make a function for wheels in vehicles.ide to change vehs wheels type. can't make it work for now...
  19. Host is 21GB of ram, my Pc is 16GB of ram. i wanna know where's the issue exactly so i could fix it, everyone in the server crashes after playing for 10 mins. can't last an hour (that sounds mad) Thanks. Version = 1.6-release-22388.0.000 Time = Wed Apr 17 00:33:07 2024 Module = C:\ProgramData\MTA San Andreas All\1.6\GTA San Andreas\gta_sa.exe Code = 0xC0000005 Offset = 0x003C91CC EAX=1C291C88 EBX=1C291C78 ECX=0177FA78 EDX=000BA3CC ESI=00000000 EDI=00000001 EBP=0177FC28 ESP=0177FA58 EIP=007C91CC FLG=00010202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B -------------------------------------------------------------------------------------------------------------------------------- Version = 1.6-release-22388.0.000 Time = Wed Apr 17 01:34:55 2024 Module = C:\ProgramData\MTA San Andreas All\1.6\GTA San Andreas\gta_sa.exe Code = 0xC0000005 Offset = 0x003C91CC EAX=16A7F648 EBX=16A7F638 ECX=0177FA78 EDX=0006CF28 ESI=00000000 EDI=00000001 EBP=0177FC28 ESP=0177FA58 EIP=007C91CC FLG=00010202 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
  20. so are you saying Mta can't handle high quality mods? my server is 4gb it crashes every 20 mins and my server has 21GB ram! why can't it just not crash lol can't we just play with unoptimised models? clearly server handles them pretty well it's just MTA that crashes
  21. As you can see, you start the interpolation from 0. Write down the current balance of money before you start the interpolation and start from there. You can use e.g. a ticks to see if the amount of money has changed local fromMoney, toMoney, visibleMoney = 0,0,0; local moneyCheckTick,moneyAnimTick = getTickCount(); if (moneyCheckTick and not moneyAnimTick) then if (getTickCount() - moneyCheckTick > 1000) then -- check every 1 s local money = getPlayerMoney(localPlayer); if (visibleMoney ~= money) then moneyAnimTick = getTickCount(); fromMoney, toMoney = visibleMoney, money; end moneyCheckTick = getTickCount(); end end if (moneyAnimTick) then local progress = (getTickCount() - moneyAnimTick) / 1000; visibleMoney = interpolateBetween(fromMoney, 0, 0, toMoney, 0, 0, progress, 'Linear'); if (progress > 1) then moneyAnimTick = nil; end end -- dxDrawText for visibleMoney variable Sorry for the broken indentation in the code, but the code editor on the forum is strange and I don't know why it happens.
  22. Na verdade deu na mesma, mesmo se eu continuar dentro do carro, capotando ele explode ;(
  23. hud={} moneyHUD={"money"} hud.font = dxCreateFont("font.ttf", 32.5, false, "antialiased") local lastMoney = 0 local moneyChangeStartTime = 0 local moneyChangeDuration = 2000 addEventHandler("onClientResourceStart", getResourceRootElement, function() setPlayerHudComponentVisible(moneyHUD, false) end) addEventHandler("onClientRender", root, function() local money = getPlayerMoney(localPlayer) money = math.min(money, 99999999) if money ~= lastMoney then lastMoney = money moneyChangeStartTime = getTickCount() end local elapsedTime = getTickCount() - moneyChangeStartTime local progress = elapsedTime / moneyChangeDuration local money = interpolateBetween(0, 0, 0, money, 0, 0, progress, "Linear") dxDrawText("$00000000", 1305, 278, 1598, 328, tocolor(255, 255, 255, 255), 1.00, hud.font, "center", "center", false, false, false, false, false) if elapsedTime >= moneyChangeDuration then lastMoney = money end end) adds money smoothly, but when you add an amount greater than the maximum (99999999) it starts adding again from zero
  24. Please disregard the post above.. This is a working code ----server addCommandHandler("adminchat", function(player, _, ...) local account = getAccountName(getPlayerAccount(player)) --get the player account for _,v in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user." .. account, aclGetGroup("Staff")) then --- this section you can customize which ACL role they are. outputChatBox("#7D6608[Admin]#9A7D0A"..getPlayerName(player):gsub("#%x%x%x%x%x%x", "").."#7D6608: #FFFFFF"..table.concat({...}, " "):gsub("#%x%x%x%x%x%x", ""), v, 255, 255, 255, true); --- thisplay chat you can customize as well. else outputChatBox("You don't have enough access to use this chat!") end end end ) ---client bindKey("h", "down", "chatbox", "adminchat"); Please hit like on 2 of my posts if these helped you
  25. Serayn

    Graphic Issues

    Hey everybody! So recently I started playing MTA again. Since im on my new Computer I am getting graphic errors everytime I play on FFS Gaming. Here an Example: https://streamable.com/jcd4f6. I tried reinstalling GTA:SA aswell as MTA, nothing works, tried experimenting with my Settings and all, nothing works. Please Help. My Specs if needed: GPU: Radeon RX 7800XT CPU: AMD Ryzen 5 7600 RAM: 32GB Thank You in Advance
  26. It should be possible, just a concept, not sure it works with this code, but you can modify the rest. --- server addCommandHandler("adminchat", function(player, _, ...) for _,v in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..account,aclGetGroup("Staff")) then --- uses ACL to determine who is able use. if (getElementData(v, "adminchat") == getElementData(player, "adminchat")) then outputChatBox("#7D6608[Admin]#9A7D0A"..getPlayerName(player):gsub("#%x%x%x%x%x%x", "").."#7D6608: #FFFFFF"..table.concat({...}, " "):gsub("#%x%x%x%x%x%x", ""), v, 255, 255, 255, true); end end end end); --- client bindKey("u", "down", "chatbox", "adminchat");
  27. Hey guys, I'd like to know how I can make a mta chat of my own like Teamsay, but only for staff members. For example, (staff) User: There's someone spamming in Shooter arena The staff chat should be binded to a key like "J" or "H". Does anyone know how I can get started with that?
  28. http://mtasaturk.com/resim/sunucuadi.png MTA Türkiye 〥 Facam Gaming - Freeroam ➤ Bir Angara Klasigi 〥 http://mtasaturk.com/resim/ipadresi.png 51.91.91.69:22003 http://mtasaturk.com/resim/yetkililer.png Xalo & Xevan - Sunucu Sahipleri adal - Model yöneticisi & Genel Yönetim yosha - Oyun içi ve Oyun Dışı Proses Kontrolcüsü http://mtasaturk.com/resim/slogan.png Çok Mu Faça? - Bir Angara Klasiği http://mtasaturk.com/resim/website.png Discord Sucumuz: https://discord.gg/facam İnstagram Adresimiz: https://www.instagram.com/facamgamingmta/ http://mtasaturk.com/resim/video.png [youtube]https://youtu.be/CoK1M3DyLQU[/youtube] http://mtasaturk.com/resim/resim.png
  1. Load more activity
×
×
  • Create New...