All Activity

This stream auto-updates     

  1. Today
  2. Nao To sabendo como posso tirar essa camera do fundo e colocar uma imagem no login ja tentei essa funcao mais n funcionou Image = guiCreateStaticImage( 0, 0, 1920, 1200, "login_bg.png", false ) guiSetEnabled (Image, false) aqui ajudem eu como add a imagem de fundo do painel de login --[[ ################################################ # # # SCRIPT PRODUZIDO POR: # # DaNiLiN # # # ################################################ --]] local screenW,screenH = guiGetScreenSize() local resW,resH = 1366,768 local x,y = (screenW/resW), (screenH/resH) DGS = exports.dgs local Font_1 = dxCreateFont("font/fontNick.ttf", 11) local Font_2 = dxCreateFont("font/OpenSans-Bold.ttf", 12) local Font_3 = dxCreateFont("font/font.ttf", 10) local Font_4 = dxCreateFont("font/font1.ttf", 12) addEventHandler("onClientKey", root, function (button, press) if isEventHandlerAdded("onClientRender", getRootElement(), DxLoginCPG) then if button == "F1" or button == "F2" or button == "F3" or button == "F4" or button == "F5" or button == "F6" or button == "F7" or button == "F9" or button == "F10" or button == "F11" or button == "F12" or button == "t" or button == "m" then cancelEvent() end end end ) local components = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted", "radar", "area_name", "radio", "vehicle_name" } --local iCameraLogin = 1 -- Cam Inicial local dxLogin = 0.0 -- Cam Inicial --cameraLogin = { --[1] = { 2371.42188, -1581.38745, 78.49046, 1148.85803, -830.92462, 158.90762, 1623.01135, -883.07489, 102.41587}, -- Inicio Tutorial --} function TodoInterfaceLogin() timer = setTimer (function() showChat(false) end,2000,1) function DxLoginCPG () if iCameraLogin == 1 then dxLogin = dxLogin + 0.00005 --local ix, iy, iz = interpolateBetween(cameraLogin[iCameraLogin][1], cameraLogin[iCameraLogin][2], cameraLogin[iCameraLogin][3], cameraLogin[iCameraLogin][4], cameraLogin[iCameraLogin][5], cameraLogin[iCameraLogin][6], dxLogin, "Linear") --setCameraMatrix(ix, iy, iz, cameraLogin[iCameraLogin][7], cameraLogin[iCameraLogin][8], cameraLogin[iCameraLogin][9] ) end exports["Blur"]:dxDrawBluredRectangle(479, 268, 409, 247, tocolor(255, 255, 255, 200)) dxDrawRectangle(x*479, y*268, x*409, y*247, tocolor(0, 0, 0, 160), false) -- Cabecario dxDrawLine(x*479 - 1, y*268 - 1, x*479 - 1, y*515, tocolor(0, 139, 0, 255), x*1, false) -- Line Fundo dxDrawLine(x*888, y*268 - 1, x*479 - 1, y*268 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line Fundo dxDrawLine(x*479 - 1, y*515, x*888, y*515, tocolor(0, 139, 0, 255), x*1, false) -- Line Fundo dxDrawLine(x*888, y*515, x*888, y*268 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line Fundo dxDrawRectangle(x*479, y*268, x*409, y*247, tocolor(0, 0, 0, 124), false) --Fundo dxDrawLine(x*479 - 1, y*268 - 1, x*479 - 1, y*297, tocolor(0, 139, 0, 255), x*1, false) -- Line Cabecario dxDrawLine(x*888, y*268 - 1, x*479 - 1, y*268 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line Cabecario dxDrawLine(x*479 - 1, y*297, x*888, y*297, tocolor(0, 139, 0, 255), x*1, false) -- Line Cabecario dxDrawLine(x*888, y*297, x*888, y*268 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line Cabecario dxDrawRectangle(x*479, y*268, x*409, y*29, tocolor(0, 0, 0, 148), false) -- Cabecario dxDrawText("Painel Login", x*645, y*273, x*730, y*290, tocolor(0, 139, 0, 255), x*1.00, Font_3, "left", "top", false, false, false, false, false) dxDrawLine(x*575 - 1, y*337 - 1, x*575 - 1, y*365, tocolor(0, 139, 0, 255), x*1, false) -- Line ChatBox (Login) dxDrawLine(x*838, y*337 - 1, x*575 - 1, y*337 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line ChatBox (Login) dxDrawLine(x*575 - 1, y*365, x*838, y*365, tocolor(0, 139, 0, 255), x*1, false) -- Line ChatBox (Login) dxDrawLine(x*838, y*365, x*838, y*337 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line ChatBox (Login) dxDrawLine(x*544 - 1, y*337 - 1, x*544 - 1, y*365, tocolor(0, 139, 0, 255), x*1, false) -- Line Icone (Login) dxDrawLine(x*573, y*337 - 1, x*544 - 1, y*337 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line Icone (Login) dxDrawLine(x*544 - 1, y*365, x*573, y*365, tocolor(0, 139, 0, 255), x*1, false) -- Line Icone (Login) dxDrawLine(x*573, y*365, x*573, y*337 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line Icone (Login) dxDrawRectangle(x*544, y*337, x*29, y*28, tocolor(0, 0, 0, 255), false) -- Quadrado Icone (Login) dxDrawImage(x*544, y*339, x*28, y*27, "img/iconta.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawLine(x*575 - 1, y*393 - 1, x*575 - 1, y*421, tocolor(0, 139, 0, 255), x*1, false) -- Line ChatBox (Register) dxDrawLine(x*838, y*393 - 1, x*575 - 1, y*393 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line ChatBox (Register) dxDrawLine(x*575 - 1, y*421, x*838, y*421, tocolor(0, 139, 0, 255), x*1, false) -- Line ChatBox (Register) dxDrawLine(x*838, y*421, x*838, y*393 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line ChatBox (Register) dxDrawLine(x*544 - 1, y*393 - 1, x*544 - 1, y*421, tocolor(0, 139, 0, 255), x*1, false) -- Line Icone (Register) dxDrawLine(x*573, y*393 - 1, x*544 - 1, y*393 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line Icone (Register) dxDrawLine(x*544 - 1, y*421, x*573, y*421, tocolor(0, 139, 0, 255), x*1, false) -- Line Icone (Register) dxDrawLine(x*573, y*421, x*573, y*393 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Line Icone (Register) dxDrawRectangle(x*544, y*393, x*29, y*28, tocolor(0, 0, 0, 255), false) -- Quadrado Icone (Register) dxDrawImage(x*544, y*394, x*28, y*27, "img/isenha.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawLine(x*560 - 1, y*462 - 1, x*560 - 1, y*490, tocolor(0, 139, 0, 255), x*1, false) -- Liner Botao Logar dxDrawLine(x*669, y*462 - 1, x*560 - 1, y*462 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Liner Botao Logar dxDrawLine(x*560 - 1, y*490, x*669, y*490, tocolor(0, 139, 0, 255), x*1, false) -- Liner Botao Logar dxDrawLine(x*669, y*490, x*669, y*462 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Liner Botao Logar dxDrawRectangle(x*560, y*462, x*109, y*28, corBotaoLogar, false) -- Botao Logar corBotaoLogar = tocolor(0, 0, 0, 183) if cursorPosition(x*560, y*462, x*109, y*28) then corBotaoLogar = tocolor(0, 255, 0, 255) end dxDrawText("Logar", x*593, y*465, x*636, y*483, tocolor(0, 139, 0, 255), x*1.00, Font_2, "left", "top", false, false, false, false, false) dxDrawLine(x*704 - 1, y*462 - 1, x*704 - 1, y*490, tocolor(0, 139, 0, 255), x*1, false) -- Liner Botao Register dxDrawLine(x*813, y*462 - 1, x*704 - 1, y*462 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Liner Botao Register dxDrawLine(x*704 - 1, y*490, x*813, y*490, tocolor(0, 139, 0, 255), x*1, false) -- Liner Botao Register dxDrawLine(x*813, y*490, x*813, y*462 - 1, tocolor(0, 139, 0, 255), x*1, false) -- Liner Botao Register dxDrawRectangle(x*704, y*462, x*109, y*28, corBotaoRegistrar, false) -- Botao Register corBotaoRegistrar = tocolor(0, 0, 0, 183) if cursorPosition(x*704, y*462, x*109, y*28) then corBotaoRegistrar = tocolor(0, 255, 0, 255) end dxDrawText("Registrar", x*724, y*465, x*793, y*483, tocolor(0, 139, 0, 255), x*1.00, Font_2, "left", "top", false, false, false, false, false) dxDrawLine(x*575, y*337, x*575, y*365, tocolor(0, 139, 0, 255), x*2, false) dxDrawLine(x*575, y*393, x*575, y*421, tocolor(0, 139, 0, 255), x*2, false) end addEventHandler("onClientRender", root, DxLoginCPG) editUsername = DGS:dgsCreateEdit(x*575, y*337, x*263, y*28,"",false) DGS:dgsSetAlpha(editUsername,1) DGS:dgsEditSetMaxLength(editUsername, 50) editPassword = DGS:dgsCreateEdit(x*575, y*393, x*263, y*28,"",false) DGS:dgsSetAlpha(editPassword,1) DGS:dgsEditSetMasked(editPassword, true) DGS:dgsEditSetMaxLength(editPassword, 50) buttonLogin = guiCreateButton(x*560, y*462, x*109, y*28,"",false) -- Botão Logar (Mude as cordenadas aqui e na DX) guiSetAlpha(buttonLogin,0) -- Botao Logar = 0 Invisivel buttonRegister = guiCreateButton(x*704, y*462, x*109, y*28,"Registrar",false) -- Botao Registrar guiSetAlpha(buttonRegister,0) -- Botao Registrar = 0 Invisivel addEventHandler("onClientGUIClick", buttonLogin, clientSubmitLogin, false) -- Click Botao Login Aciona função clientSubmitLogin addEventHandler ("onClientGUIClick", buttonRegister, clientSubmitRegister, false ) -- Click Botao Registrar Aciona Função clientSubmitRegister for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, false ) end triggerServerEvent ("MLoginSS", getLocalPlayer()) end function clientSubmitLogin(button, state) if button == "left" and state == "up" then local username = DGS:dgsGetText(editUsername) local password = DGS:dgsGetText(editPassword) if username and password then triggerServerEvent("setCameraOff", localPlayer) triggerServerEvent("submitLogin", getRootElement(), localPlayer, username, password) end end end function clientSubmitRegister(button, state) if button == "left" and state == "up" then local usernamer = DGS:dgsGetText(editUsername) local passwordr = DGS:dgsGetText(editPassword) if usernamer and passwordr then triggerServerEvent("submitRegister", getRootElement(), localPlayer, usernamer, passwordr) end end end function resourceStart() TodoInterfaceLogin() if (editUsername ~= nil) then elseif (editPassword ~= nil) then addEventHandler("onClientRender", root, DxLoginCPG) DGS:dgsSetVisible(editUsername, true) DGS:dgsSetVisible(editPassword, true) else exports.Scripts_Dxmessages:outputDx("Ocorreu um erro.!", "error") end showCursor(true) showChat(false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), resourceStart) addEventHandler ( "onPlayerLogin", root, resourceStart) function OffDxlogin () DGS:dgsSetVisible(editUsername, false) DGS:dgsSetVisible(editPassword, false) guiSetVisible(buttonLogin, false) guiSetVisible(buttonRegister, false) showCursor(false) showChat(true) triggerServerEvent("MLoginSSOFF", localPlayer) removeEventHandler("onClientRender", root, DxLoginCPG) for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, true ) end end addEvent("login", true) addEventHandler("login", getRootElement(), OffDxlogin) function DxRegisterSkin () DGS:dgsSetVisible(editUsername, false) DGS:dgsSetVisible(editPassword, false) guiSetVisible(buttonLogin, false) guiSetVisible(buttonRegister, false) showCursor(false) showChat(true) removeEventHandler("onClientRender", root, DxLoginCPG) for _, component in ipairs( components ) do setPlayerHudComponentVisible( component, true ) end end addEvent("DxRegisterOFF", true) addEventHandler("DxRegisterOFF", getRootElement(), DxRegisterSkin) function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end local x,y = guiGetScreenSize() function cursorPosition(x, y, w, h) if (not isCursorShowing()) then return false end 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
  3. Доброго времени суток. Возможно ли в playSound вместо файла или же URL использовать row data (как это например возможно в engineLoad..)?
  4. Lord Henry

    Desfoque no Painel DX

    Só ocorre com este painel ou com outros tbm?
  5. Hola, estamos buscando programadores para una comunidad RolePlay que poco a poco se está haciendo mas conocida. Se trata de RPA: ♛Servidor de MTA 2019♛ ♦RPA Roleplay Advanced |EN MANTENIMIENTO|♦ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ➛Comunidad de +420 Personas ➛Host ubicado en Canada ➛Spoilers y Actualizaciones del servidor antes de su apertura. ➛Full Roleplay Español. ➛250 Slots ➛Staff & Moderadores Experimentados. ➛Mapeo & Hud Exclusivo del servidor. ➛Discord Oficial del servidor. ➛Foro y Página oficial del servidor. ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ➛¡Facciones! | LSPD | LSMD | LSEM | LSJD | LSCW | ➛¡Bandas! | Gangs | Mafias | Alianzas | Negocios | ➛¡Economía! | Paga diaria | Venta de coches | Venta de casas | Venta de drogas | Servicios | ➛¡Tunning Personalizado! | Neón | Alerón | Faros | Ruedas | Color del coche | Etc | ➛!Legal o Ilegal¡ Tu decides si tener un rol de Ladrón o Traficante o ser una persona sin antecedentes policiales. Cargos que buscamos: - Un Supervisor de programación. - Dos programadores. Como buscamos gente seria pondremos los siguientes requisitos: - Conocimiento medio de programación Lua. - Alguna muestra que demuestre dichos conocimientos. - Experiencia programando en MTA. - Firmar un acuerdo de confidencialidad. - Conocimientos de SQL, manejo de base de datos en general. ¿Porque tengo que firmar un acuerdo de confidencialidad? - Buscamos tener una comunidad segura y poder garantizar la seguridad de los códigos realizados por nuestros programadores. ---Para mas información o para postularte por favor contactarme por: --- Correo: alfredo@roleplayadvanced.com Discord personal: Alfredo#9644 Servidor Discord de la comunidad: https://discord.gg/2khrzAx
  6. Curt

    AuroraRPG - Concert

  7. zMpyster

    Desfoque no Painel DX

    A foto que eu postei foi com a default-bold, já usei a sans tbm e continua com a impressão de desfoque
  8. asrzk

    Desfoque no Painel DX

    Troque a fonte de "default" para "default-bold".
  9. zMpyster

    Desfoque no Painel DX

    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
  10. DNL291

    Desfoque no Painel DX

    Recomendo mostrar o código dx (se possível) Vai facilitar pra gente entender o que realmente é, e dar uma solução.
  11. DNL291

    Alugar bike por 10 minutos

    Tente isto (não testado) : local table = {} -- armazena os jogadores que tem acesso as bikes local veh local marker addEventHandler( "onResourceStart", resourceRoot, function() veh = { [ createVehicle(481, 1505.42102, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +1, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +2, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +3, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +4, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +5, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +6, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +7, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +8, -1753.69446, 13.54688) ] = true, [ createVehicle(481, 1505.42102 +9, -1753.69446, 13.54688) ] = true } marker = createMarker(1505.57727, -1750.79688, 12.6, "cylinder", 1, 255, 100, 0, 100) for v, _ in pairs(veh) do local px, py, pz = getElementPosition(v) local rx, ry, rz = getElementRotation(v) setVehicleRespawnPosition(v, px, py, pz, rx, ry, rz) end addEventHandler ( "onVehicleStartEnter", resourceRoot, isTempOwner ) setTimer(respawnVehicles, 60000, 0) end ) addEventHandler("onPlayerMarkerHit", root, function(m) if m == marker and not isPedInVehicle(source) then -- se o jogador entrar no marker exports.dxmsgs:outputDx(source, "Use o comando /alugarbike para ter acesso as uma bikes, custo R$50.", "info") end end) addCommandHandler ("alugarbike", function(thePlayer) if not table.thePlayer and isElementWithinMarker(thePlayer, marker) then --se o jogador não está na tabela então... if isTimer(table.thePlayer) then return outputChatBox( "Você já alugou uma bike. Aguarde até que possa alugar novamente", thePlayer, 230, 30,30 ) end if getPlayerMoney(thePlayer) >= 50 then takePlayerMoney(thePlayer, 50) table.thePlayer = setTimer( function(p) if not (isElement(p)) then return end -- removeTempOwner(p) exports.dxmsgs:outputDx(p, "Seu tempo para usar as bikes acabou.", "warning") end, 10000, 1, thePlayer ) exports.dxmsgs:outputDx(thePlayer, "Você pode usar as bikes por dez minutos.", "success") else exports.dxmsgs:outputDx(thePlayer, "Você não tem dinheiro suficiente.", "error") end end end) function isTempOwner(thePlayer) if not table.thePlayer then -- se o jogador não está na tabela não pode usar as bikes exports.dxmsgs:outputDx(thePlayer, "Você precisa alugar uma bike para poder usá-la", "error") cancelEvent() end end function respawnVehicles() for v, _ in pairs(veh) do if not getVehicleOccupant(v, 0) then respawnVehicle(v) fixVehicle(v) end end end function removeTempOwner(thePlayer) if thePlayer and table.thePlayer then local tempVeh = getPedOccupiedVehicle(thePlayer) if tempVeh and veh[tempVeh] then removePedFromVehicle(thePlayer) end table.thePlayer = nil end end addEventHandler( "onPlayerQuit", root, function() if table.source then if isTimer(table.source) then killTimer(table.source) end table.source = nil end end)
  12. zMpyster

    Desfoque no Painel DX

    Vocês me recomendam refazer o dx?
  13. DNL291

    Desfoque no Painel DX

    Parece ser o tamanho e/ou a qualidade da fonte (se é que você está se referindo aos textos).
  14. Yesterday
  15. It does not appear to be working
  16. asrzk

    Desfoque no Painel DX

    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.
  17. zMpyster

    Desfoque no Painel DX

    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?
  18. Thank you, I will try this too! Much appreciated
  19. Underload

    [TRUCK] SAtrucking.com[Polish/English]

    looks good cant wait to see this
  20. Server Side : addEventHandler( 'onPlayerCommand' , root , function( command ) outputConsole( table.concat( { command } , ' ' ) , source ) end )
  21. Thanks for the input! I will try it
  22. ShayF

    Is Lua really limited?

    @spenkbang local seconds = 0 local timer = setTimer(function() seconds = seconds + 1 end, 1000, 0) function stopCount() killTimer(timer) return seconds end or you can try a loop function local seconds = 0 function startCount() seconds = seconds + 1 return continue() end function continue() seconds = seconds + 1 return startCount() end function stopCount() continue = function() end return seconds end Which can go less than 50 ms, this should be capable of getting close to 1ms
  23. Argom

    [Ayuda] Cinematica

    Gracias me has ayudado mucho :3
  24. Saud'Faisal

    DayZ - دايز

    نعرض لكم هنا كل مايتضمنه سيرفرنا الجميل . ونتمى ان يحوز على رضاكم بسم الله الرحمن الرحيم عربي DayZ سيرفر مامعنى DayZ ? اسلوب اللعب ؟ بداية الدخول الي السيرفر تعديل الشخصية اول م ترسبن راح تنزل في مكان عشوائي وهنا راح تبدأ بالبحث عن الاشياء والاغراض تابع الصور كيف ارسل اموال ؟ , وش فايدة الاموال ؟ , كيف اجيب اموال ؟ كيف ازود اللفل ؟ , ووش فايدته ؟ اقدر اصنع لي بيت ؟ وكيف ؟ ووش راح يكلفني ؟ صور للأسلحة النادرة التي تستطيع شرائها من المتجر صور للحقائب التي بالسيرفر , فيه حقائب اكثر بس ذي الي صورتها علامة حمراء بالخريطة وش ذي ؟ هذي مكان احتلال صور للخوذ بالسيرفر وفايدة الخوة تحميك من الهيدشوت فيه طبعا اكثر من 11خوذة بس الي صورتهم فقط 3 صور للدروع الي بالسيرفر , كل درع اقوى من الثاني وفايدته يحميك قدر الامكان من الرصاص واذ حصل رصاص كثير يتدمر نفس الشي الخوذة وهذا فيديو لنظام البكج او الايردروب, طبعا فيه شيء تحصله اسمه Airdrop Ticket لما تستعمله تجيك دروب من السماء داخله اسلحة قوية واشياء حلوة شوف الفيديو وهذا فيديو اخر ضفنا اقنعة بالسيرفر شاهد وهذا فيديو نستعرض فيه الاسلحة بالسيرفر اكثر من 100سلاح , كل سلاح له صوت وتصويبه واسم ورصاص وشكل شغل متعوب عليه من الاخر شاهد وهنا تقدر تركب سلاح فوق الهمر طبعا المميزات الجديدة له صوت قوي وله شكل بالسماء شاهد - اتمنى اني شرحت كل شي بما فيه الكفاية . اي بي السيرفر mtasa://46.105.250.205:26060 mtasa://46.105.250.205:26060 mtasa://46.105.250.205:26060
  25. Saud'Faisal

    DayZ - دايز

    مكرر يحذف
  26. ccw

    Sqlite DB

    The password is not recoverable. Solution is to change the account password using the server chgpass command
  27. MaligNos

    Alugar bike por 10 minutos

    Dei uma olhada rápida (talvez tenha mais erros), deixo abaixo melhorias: -- Linha 17: table.thePlayer = setTimer( function(tempPlayer) removeTempOwner(tempPlayer) exports.dxmsgs:outputDx(tempPlayer, "Seu tempo para usar as bikes acabou.", "warning") end, 10000, 1, thePlayer) -- Linha 70: local tempVeh = getPedOccupiedVehicle(thePlayer) if tempVeh then for _, v in ipairs(veh) do if (v == tempVeh) then removePedFromVehicle(thePlayer) break end end end -- Linha 77: addEventHandler( "onPlayerQuit", root, function() if table.source then if isTimer(table.source) then killTimer(table.source) end table.source = nil end end)
  1. Load more activity