zMpyster Posted February 16, 2019 Share Posted February 16, 2019 olá gente fiz esse painel DX e ele funciona tudo certo só que tem um problema, se repararem ele está meio que desfocado, alguma sugestão? Link to comment
Other Languages Moderators androksi Posted February 16, 2019 Other Languages Moderators Share Posted February 16, 2019 Sério? Abri a imagem e não vejo desfoque algum. Porém, se você ficar olhando para os textos dos nomes dos veículos, dá impressão que tá desfocado. Tente alterar o tamanho da fonte. Link to comment
DNL291 Posted February 17, 2019 Share Posted February 17, 2019 (edited) Parece ser o tamanho e/ou a qualidade da fonte (se é que você está se referindo aos textos). Edited February 17, 2019 by DNL291 Link to comment
zMpyster Posted February 17, 2019 Author Share Posted February 17, 2019 28 minutes ago, asrzk said: Sério? Abri a imagem e não vejo desfoque algum. Porém, se você ficar olhando para os textos dos nomes dos veículos, dá impressão que tá desfocado. Tente alterar o tamanho da fonte. Vocês me recomendam refazer o dx? Link to comment
DNL291 Posted February 17, 2019 Share Posted February 17, 2019 19 minutes ago, zMpyster said: Vocês me recomendam refazer o dx? Recomendo mostrar o código dx (se possível) Vai facilitar pra gente entender o que realmente é, e dar uma solução. Link to comment
zMpyster Posted February 17, 2019 Author Share Posted February 17, 2019 (edited) edit = {} addEventHandler("onClientResourceStart", resourceRoot, function() edit[1] = guiCreateEdit(470, 217, 45, 21, "", false) edit[2] = guiCreateEdit(470, 246, 45, 21, "", false) edit[3] = guiCreateEdit(470, 275, 45, 21, "", false) edit[4] = guiCreateEdit(470, 306, 45, 21, "", false) edit[5] = guiCreateEdit(470, 337, 45, 21, "", false) edit[6] = guiCreateEdit(470, 395, 45, 21, "", false) edit[7] = guiCreateEdit(470, 516, 45, 21, "", false) edit[8] = guiCreateEdit(470, 366, 45, 21, "", false) edit[9] = guiCreateEdit(470, 426, 45, 21, "", false) edit[10] = guiCreateEdit(470, 455, 45, 21, "", false) edit[11] = guiCreateEdit(470, 484, 45, 21, "", false) edit[12] = guiCreateEdit(642, 217, 45, 21, "", false) edit[13] = guiCreateEdit(642, 275, 45, 21, "", false) edit[14] = guiCreateEdit(642, 306, 45, 21, "", false) edit[15] = guiCreateEdit(642, 246, 45, 21, "", false) edit[16] = guiCreateEdit(642, 335, 45, 21, "", false) edit[17] = guiCreateEdit(799, 217, 45, 21, "", false) edit[18] = guiCreateEdit(642, 365, 45, 21, "", false) edit[19] = guiCreateEdit(642, 394, 45, 21, "", false) edit[20] = guiCreateEdit(799, 248, 45, 21, "", false) edit[21] = guiCreateEdit(642, 426, 45, 21, "", false) edit[22] = guiCreateEdit(642, 456, 45, 21, "", false) edit[23] = guiCreateEdit(642, 485, 45, 21, "", false) edit[24] = guiCreateEdit(799, 275, 45, 21, "", false) edit[25] = guiCreateEdit(642, 514, 45, 21, "", false) edit[26] = guiCreateEdit(799, 304, 45, 21, "", false) edit[27] = guiCreateEdit(799, 333, 45, 21, "", false) edit[28] = guiCreateEdit(799, 365, 45, 21, "", false) edit[29] = guiCreateEdit(799, 394, 45, 21, "", false) edit[30] = guiCreateEdit(799, 426, 45, 21, "", false) edit[31] = guiCreateEdit(799, 457, 45, 21, "", false) edit[32] = guiCreateEdit(798, 485, 45, 21, "", false) edit[33] = guiCreateEdit(880, 298, 55, 27, "", false) edit[34] = guiCreateEdit(954, 298, 55, 27, "", false) Visible(false) end ) function Visible(confg) for i=1, 34 do guiSetVisible(edit[i], confg) guiEditSetMaxLength ( edit[i], 4 ) end end function painelRemoverMultas() dxDrawRectangle(x*331, y*143, x*705, y*482, tocolor(0, 0, 0, 147), false) dxDrawRectangle(x*432, y*143, x*512, y*34, tocolor(255, 255, 255, 147), false) Texto("PAGAR MULTAS", 432, 143, 944, 177, tocolor(255, 255, 255, 255), 1.80, "default", "center", "center", false, false, false, false, false) if getElementData(localPlayer, "tomoumulta".. 445) then Texto("Sandero: ".. getElementData(localPlayer, "tomoumulta".. 445), 368, 219, 462, 238, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Sandero: 0", 368, 219, 462, 238, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 602) then Texto("Porsche 911: ".. getElementData(localPlayer, "tomoumulta".. 602), 358, 246, 452, 265, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Porsche 911: 0", 358, 246, 452, 265, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 536) then Texto("SLK 350: ".. getElementData(localPlayer, "tomoumulta".. 536), 375, 277, 460, 296, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("SLK 350: 0", 375, 277, 460, 296, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 483) then Texto("Kombi: ".. getElementData(localPlayer, "tomoumulta".. 483), 393, 306, 456, 325, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Kombi: 0", 393, 306, 456, 325, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 542) then Texto("Corvette: ".. getElementData(localPlayer, "tomoumulta".. 542), 383, 337, 452, 356, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Corvette: 0", 383, 337, 452, 356, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 419) then Texto("Camaro SS: ".. getElementData(localPlayer, "tomoumulta".. 419), 371, 426, 452, 445, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Camaro SS: 0", 371, 426, 452, 445, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 492) then Texto("Honda Fit: ".. getElementData(localPlayer, "tomoumulta".. 492), 377, 515, 453, 537, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Honda Fit: 0", 377, 515, 453, 537, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 589) then Texto("BMW M235I: ".. getElementData(localPlayer, "tomoumulta".. 589), 361, 368, 456, 387, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("BMW M235I: 0", 361, 368, 456, 387, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 507) then Texto("Sonata: ".. getElementData(localPlayer, "tomoumulta".. 507), 393, 397, 453, 416, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Sonata: 0", 393, 397, 453, 416, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 466) then Texto("Civic Ferio: ".. getElementData(localPlayer, "tomoumulta".. 466), 379, 455, 452, 474, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Civic Ferio: 0", 379, 455, 452, 474, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 604) then Texto("Uno-S: ".. getElementData(localPlayer, "tomoumulta".. 604), 398, 484, 453, 505, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Uno-S: 0", 398, 484, 453, 505, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end Texto("VEÍCULO | MULTAS", 348, 186, 525, 201, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) Texto("VEÍCULO | MULTAS", 515, 186, 692, 201, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) if getElementData(localPlayer, "tomoumulta".. 494) then Texto("Ferrari FF: ".. getElementData(localPlayer, "tomoumulta".. 494), 542, 217, 636, 236, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Ferrari FF: 0", 542, 217, 636, 236, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 502) then Texto("GranTurismo: ".. getElementData(localPlayer, "tomoumulta".. 502), 535, 246, 629, 265, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("GranTurismo: 0", 535, 246, 629, 265, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 411) then Texto("Zonda: ".. getElementData(localPlayer, "tomoumulta".. 411), 564, 306, 629, 325, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Zonda: 0", 564, 306, 629, 325, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 404) then Texto("Logan: ".. getElementData(localPlayer, "tomoumulta".. 404), 569, 425, 622, 447, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Logan: 0", 569, 425, 622, 447, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 500) then Texto("Jipe: ".. getElementData(localPlayer, "tomoumulta".. 500), 579, 394, 624, 413, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Jipe: 0", 579, 394, 624, 413, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 579) then Texto("Palio EX: ".. getElementData(localPlayer, "tomoumulta".. 579), 558, 275, 629, 296, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Palio EX: 0", 558, 275, 629, 296, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 603) then Texto("Gallardo: ".. getElementData(localPlayer, "tomoumulta".. 603), 544, 456, 638, 475, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Gallardo: 0", 544, 456, 638, 475, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 551) then Texto("Fusion: ".. getElementData(localPlayer, "tomoumulta".. 551), 567, 365, 624, 384, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Fusion: 0", 567, 365, 624, 384, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 559) then Texto("Audi TT: ".. getElementData(localPlayer, "tomoumulta".. 559), 558, 335, 624, 355, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Audi TT: 0", 558, 335, 624, 355, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 600) then Texto("Montana: ".. getElementData(localPlayer, "tomoumulta".. 600), 554, 484, 624, 504, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Montana: 0", 554, 484, 624, 504, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 534) then Texto("Focus: ".. getElementData(localPlayer, "tomoumulta".. 534), 735, 217, 787, 236, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Focus: 0", 735, 217, 787, 236, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 580) then Texto("Fox: ".. getElementData(localPlayer, "tomoumulta".. 580), 745, 275, 788, 295, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Fox: 0", 745, 275, 788, 295, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 426) then Texto("Santana: ".. getElementData(localPlayer, "tomoumulta".. 426), 555, 514, 624, 533, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Santana: 0", 555, 514, 624, 533, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 405) then Texto("Vectra GT: ".. getElementData(localPlayer, "tomoumulta".. 405), 711, 246, 789, 265, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Vectra GT: 0", 711, 246, 789, 265, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end Texto("VEÍCULO | MULTAS", 677, 187, 854, 202, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) if getElementData(localPlayer, "tomoumulta".. 549) then Texto("Golf Sapao: ".. getElementData(localPlayer, "tomoumulta".. 549), 708, 304, 788, 324, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Golf Sapao: 0", 708, 304, 788, 324, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 421) then Texto("Siena: ".. getElementData(localPlayer, "tomoumulta".. 421), 737, 364, 789, 384, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Siena: 0", 737, 364, 789, 384, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 558) then Texto("Maverick GT: ".. getElementData(localPlayer, "tomoumulta".. 558), 703, 334, 788, 354, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else Texto("Maverick GT: 0", 703, 334, 788, 354, tocolor(255, 255, 255, 255), 1.000, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 529) then Texto("Duster: ".. getElementData(localPlayer, "tomoumulta".. 529), 736, 394, 788, 414, tocolor(255, 255, 255, 255), 1.000, "default", "center", "center", false, false, false, false, false) else Texto("Duster: 0", 736, 394, 788, 414, tocolor(255, 255, 255, 255), 1.000, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 477) then Texto("Diablo: ".. getElementData(localPlayer, "tomoumulta".. 477), 737, 425, 789, 445, tocolor(255, 255, 255, 255), 1.000, "default", "center", "center", false, false, false, false, false) else Texto("Diablo: 0", 737, 425, 789, 445, tocolor(255, 255, 255, 255), 1.000, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 540) then Texto("Punto: ".. getElementData(localPlayer, "tomoumulta".. 540), 737, 456, 789, 476, tocolor(255, 255, 255, 255), 1.000, "default", "center", "center", false, false, false, false, false) else Texto("Punto: 0", 737, 456, 789, 476, tocolor(255, 255, 255, 255), 1.000, "default", "center", "center", false, false, false, false, false) end if getElementData(localPlayer, "tomoumulta".. 535) then Texto("Mustang GT: ".. getElementData(localPlayer, "tomoumulta".. 535), 705, 486, 793, 506, tocolor(255, 255, 255, 255), 1.000, "default", "center", "center", false, false, false, false, false) else Texto("Mustang GT: 0", 705, 486, 793, 506, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end Texto("SE NÃO TIVER O VEÍCULO, DIGITE O ID DELE AQUI E A QUANTIDADE DE MULTAS A SEREM PAGAS", 858, 212, 1030, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, true, false, false, false) dxDrawLine(x*853, y*217, x*853, y*503, tocolor(255, 255, 255, 255), x*5, false) dxDrawRectangle(x*430, y*563, x*176, y*43, tocolor(255, 255, 255, 147), false) Texto("PAGAR", 430, 563, 608, 607, tocolor(255, 255, 255, 255), 1.40, "default-bold", "center", "center", false, true, false, false, false) dxDrawRectangle(x*753, y*561, x*176, y*43, tocolor(255, 255, 255, 147), false) Texto("VOLTAR", 753, 560, 931, 604, tocolor(255, 255, 255, 255), 1.40, "default-bold", "center", "center", false, true, false, false, false) Texto("ID", 877, 279, 935, 298, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) Texto("MULTAS", 954, 279, 1012, 298, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) end function Texto (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) dxDrawText(a, x*b, y*c, x*d, y*e, f, x*g, h, i, j, k, l, m, n, o) end Edited February 17, 2019 by zMpyster Link to comment
Other Languages Moderators androksi Posted February 17, 2019 Other Languages Moderators Share Posted February 17, 2019 Troque a fonte de "default" para "default-bold". Link to comment
zMpyster Posted February 17, 2019 Author Share Posted February 17, 2019 50 minutes ago, asrzk said: Troque a fonte de "default" para "default-bold". A foto que eu postei foi com a default-bold, já usei a sans tbm e continua com a impressão de desfoque Link to comment
Other Languages Moderators Lord Henry Posted February 17, 2019 Other Languages Moderators Share Posted February 17, 2019 Só ocorre com este painel ou com outros tbm? Link to comment
Other Languages Moderators androksi Posted February 17, 2019 Other Languages Moderators Share Posted February 17, 2019 (edited) Troque essa função: function Texto (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) dxDrawText(a, x*b, y*c, x*d, y*e, f, x*g, h, i, j, k, l, m, n, o) end Por esta: function Texto (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) dxDrawText(a, x*b, y*c, x*d, y*e, f, y*g, h, i, j, k, l, m, n, o) end Já disse em um outro tópico que não se usa a posição "X" da tela para ajustar o tamanho de fontes, e sim a posição "Y". Edited February 17, 2019 by asrzk 1 Link to comment
zMpyster Posted February 17, 2019 Author Share Posted February 17, 2019 (edited) Não lord era só com esse, eu dps daquilo fiquei com um pouco de medo ent tirei essa print de agr, e na opinião de vcs melhorou? obs: já coloquei o y no lugar do x Edited February 17, 2019 by zMpyster 1 Link to comment
Other Languages Moderators androksi Posted February 17, 2019 Other Languages Moderators Share Posted February 17, 2019 Melhorou! Link to comment
zMpyster Posted February 17, 2019 Author Share Posted February 17, 2019 40 minutes ago, asrzk said: Melhorou! Só pra não ter que criar outro tópico, estou com uma dúvida, fiz um mod de headshot, só que quando eu crio um ped e cancelo os eventos 'onClientPedDamage' e 'onClientPedWasted' não adiantam pois no headshot está o killPed será que teria algum forma de eu desabilitar o killPed para esse ped? 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