Jump to content

Search the Community

Showing results for tags 'resolução'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 3 results

  1. Meu mta não está mostrando outras resoluções, apenas 1366x768, qualquer outra como 800x600 não aparece. Já fui na coreconfig e mudei o parâmetro para mostrar resoluções não seguras, mas mesmo assim não resolveu!
  2. Bom, criei um "complemento" para um hud já existente, mas ele foi criado em uma pasta diferente. Então, criei a hud, estava funcionando(minha resolução 1280x720), so que, quando testo em outras resoluções(1366x766; 1360;760; etc) ela buga ( https://prnt.sc/mm5y2w aqui ela está em 1366x768) Qual pode ser o erro? Segue abaixo: local screenW, screenH = guiGetScreenSize() local resW, resH = 1366, 768 local x, y = ( screenW/resW ), ( screenH/resH ) function drawHUD() local estrelasprocurado = getPlayerWantedLevel (localPlayer) local ArmaAtual = getPedWeapon(localPlayer) local MunicaoPente = getPedAmmoInClip (localPlayer) local MunicaoTotal = getPedTotalAmmo (localPlayer) dxDrawImage(x*0.8430, y*0.0375, x*0.2000, y*0.1778, ":[BR]HUDRPComplemento/img/"..ArmaAtual..".png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(x*1142, y*187, x*80, y*0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(x*0.8945, y*0.2014, x*0.1039, y*0.0306, tocolor(0, 0, 0, 109), false) dxDrawText("Munição: "..MunicaoPente.."/"..MunicaoTotal, x*1161, y*135, x*1268, y*177, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) dxDrawRectangle(x*0.7867, y*0.0431, x*0.0000, y*0.0306, tocolor(255, 255, 255, 255), false) dxDrawRectangle(x*0.7867, y*0.0431, x*0.1016, y*0.0306, tocolor(0, 0, 0, 84), false) dxDrawText("Estrelas: "..estrelasprocurado, x*1034, y*37, x*1114, y*51, tocolor(255, 255, 255, 255), x*0.98, "default", "center", "top", false, false, false, false, false) dxDrawRectangle(x*873, y*31, x*130, y*22, tocolor(0, 0, 0, 84), false) dxDrawText("Desempregado", x*898, y*37, x*961, y*51, tocolor(255, 255, 255, 255), x*0.95, "default", "left", "top", false, false, false, false, false) dxDrawLine(x*874, y*51, x*874, y*51, tocolor(255, 255, 255, 255), x*1, false) dxDrawLine(x*873, y*53, x*1002, y*53, tocolor(255, 255, 255, 255), x*1, false) dxDrawLine(x*1008, y*53, x*1137, y*53, tocolor(255, 255, 255, 255), x*1, false) dxDrawLine(x*1147, y*167, x*1276, y*167, tocolor(255, 255, 255, 255), x*1, false) end addEventHandler("onClientRender", getRootElement(), drawHUD) function toggleRadar() if isVisible then addEventHandler("onClientRender", root, drawHUD ) else removeEventHandler("onClientRender", root, drawHUD ) end isVisible = not isVisible end bindKey ("F11", "down", toggleRadar) local hudTable = { "ammo", "armour", "clock", "health", "money", "weapon", "wanted", "area_name", "vehicle_name", "breath", "clock" } addEventHandler("onClientResourceStart", resourceRoot, function() for id, hudComponents in ipairs(hudTable) do showPlayerHudComponent(hudComponents, false) end end ) addEventHandler("onClientResourceStop", resourceRoot, function() for id, hudComponents in ipairs(hudTable) do showPlayerHudComponent(hudComponents, true) end end )
  3. Olá, estava fazendo um painel de inicio e queria que ele rodasse um video não uma imagem e eu fiz está função: local sW, sH = guiGetScreenSize() local x, y = (sW/1366), (sH/768) local font = dxCreateFont("font.ttf", x*15) editBox = {} editBox.__index = editBox editBox.instances = {} function onClientResourceStart() tick = getTickCount() g = {} g.user = editBox.new() showCursor(true) showChat(false) setPlayerHudComponentVisible("all", false) addEventHandler("onClientRender", root, dxLoginS) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onClientResourceStart) function dxLoginS() end local browser = guiCreateBrowser( 0, 0, sW, sH, false, false, false) local theBrowser = guiGetBrowser( browser ) addEventHandler( "onClientBrowserCreated", theBrowser, function() loadBrowserURL( source, "https://www.youtube.com/watch?v=S0kWGy_XfMI" ) end) function editBox.new() local self = setmetatable({}, editBox) self.text = "" self.maxLength = 15 self.scale = y*0.8 self.state = "normal" self.font = font self.color = {255,255,255,220} self.textColor = {255,255,255,220} table.insert(editBox.instances, self) return self end function editBox:getPosition(x,y,w,h) return self.x, self.y, self.w, self.h end function editBox:setPosition(x,y,w,h) self.x, self.y, self.w, self.h = x,y,w,h return true end function dxDrawBorder(posX, posY,posW,posH,color,scale) dxDrawLine(posX, posY, posX+posW, posY, color, scale,false) dxDrawLine(posX, posY, posX, posY+posH, color, scale,false) dxDrawLine(posX, posY+posH, posX+posW, posY+posH, color, scale,false) dxDrawLine(posX+posW, posY, posX+posW, posY+posH, color, scale,false) end function isCursorOnElement(x, y, w, h) if (not isCursorShowing) then return false end local sx, sy = guiGetScreenSize() local cx, cy = getCursorPosition local cx, cy = (cx*sx), (cy*sy) if (cx >= x and cx <= x + w) and (cy >= y and cy <= y + h) then return true else return false end end Até ai tudo bem, ele abre o video e tals mas oque eu quero é que ele abra o video já em tela cheia e não igual ao youtube com a logo outros vídeos essas coisas, somente este video mas quando eu dou start nele ele abre ja em tela cheia se poderem me ajudar fico muito grato...
×
×
  • Create New...