Jump to content

Renaz

Members
  • Posts

    224
  • Joined

  • Last visited

About Renaz

  • Birthday 15/11/1999

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Renaz's Achievements

Trick

Trick (18/54)

1

Reputation

  1. Renaz

    Low FPS

    thank you very much
  2. Renaz

    Low FPS

    So i bought a new computer some weeks ago, now i installed mta and i noticed that fps are blocked in 36 with this config is not supposed to be that fps i could i unblock them? PS: I Posted it here because i dont found the section to post it
  3. tem como executar um comando de outro script? ex: o jogador abre um painel ai ele clica em um botao e ele executa um /qualquercoisa? tem como
  4. Desde já desculpe a demora para responder , testei no jogo mas não está funcionando para mover para cima e baixo. além disso eu não consigo aplicar isto no meu código. addEventHandler("onClientRender", getRootElement(), function () if aba_painel == 0 then dxDrawRectangle(x*1366/2, y*(768/2), x*200, y*30, tocolor(100, 0, 0, 100), false) --/> Admin else dxDrawRectangle(x*1366/2, y*(768/2), x*200, y*30, tocolor(0, 0, 0, 100), false) --/> Admin end if aba_painel == 1 then dxDrawRectangle(x*1366/2, y*(768/2)+35, x*200, y*30, tocolor(100, 0, 0, 100), false) --/> Policia else dxDrawRectangle(x*1366/2, y*(768/2)+35, x*200, y*30, tocolor(0, 0, 0, 100), false) --/> Policia end if aba_painel == 2 then dxDrawRectangle(x*1366/2, y*(768/2)+35*2, x*200, y*30, tocolor(100, 0, 0, 100), false) --/> Inventário else dxDrawRectangle(x*1366/2, y*(768/2)+35*2, x*200, y*30, tocolor(0, 0, 0, 100), false) --/> Inventário end if aba_painel == 3 then dxDrawRectangle(x*1366/2, y*(768/2)+35*3, x*200, y*30, tocolor(100, 0, 0, 100), false) --/> Animação else dxDrawRectangle(x*1366/2, y*(768/2)+35*3, x*200, y*30, tocolor(0, 0, 0, 100), false) --/> Animação end if aba_painel == 4 then dxDrawRectangle(x*1366/2, y*(768/2)+35*4, x*200, y*30, tocolor(100, 0, 0, 100), false) --/> Ações else dxDrawRectangle(x*1366/2, y*(768/2)+35*4, x*200, y*30, tocolor(0, 0, 0, 100), false) --/> Ações end if aba_painel == 5 then dxDrawRectangle(x*1366/2, y*(768/2)+35*5, x*200, y*30, tocolor(100, 0, 0, 100), false) --/> Veiculo else dxDrawRectangle(x*1366/2, y*(768/2)+35*5, x*200, y*30, tocolor(0, 0, 0, 100), false) --/> Veiculo end if aba_painel_menus == "Admin" then dxDrawRectangle(x*(1366/2)-200, y*(768/2)+35*5, x*200, y*100, tocolor(100, 100, 0, 100), false) elseif aba_painel_menus == "Policia" then dxDrawRectangle(x*(1366/2)-200, y*(768/2)+35*5, x*200, y*100, tocolor(255, 0, 0, 100), false) elseif aba_painel_menus == "Inventário" then dxDrawRectangle(x*(1366/2)-200, y*(768/2)+35*5, x*200, y*100, tocolor(100, 100, 100, 100), false) elseif aba_painel_menus == "Animação" then dxDrawRectangle(x*(1366/2)-200, y*(768/2)+35*5, x*200, y*100, tocolor(0, 100, 0, 100), false) elseif aba_painel_menus == "Ações" then dxDrawRectangle(x*(1366/2)-200, y*(768/2)+35*5, x*200, y*100, tocolor(0, 0, 100, 100), false) elseif aba_painel_menus == "Veiculo" then dxDrawRectangle(x*(1366/2)-200, y*(768/2)+35*5, x*200, y*100, tocolor(0, 0, 255, 100), false) end end) meu código (Painel Principal) function PainelPrincipal() dxDrawLine(23 - 1, 174 - 1, 23 - 1, 513, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 174 - 1, 23 - 1, 174 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 513, 218, 513, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 513, 218, 174 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 174, 195, 339, tocolor(0, 0, 0, 144), false) dxDrawRectangle(23, 174, 195, 44, tocolor(255, 63, 63, 182), false) dxDrawText("Painel Pessoal", 25 - 1, 177 - 1, 213 - 1, 214 - 1, tocolor(0, 0, 0, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Painel Pessoal", 25 + 1, 177 - 1, 213 + 1, 214 - 1, tocolor(0, 0, 0, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Painel Pessoal", 25 - 1, 177 + 1, 213 - 1, 214 + 1, tocolor(0, 0, 0, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Painel Pessoal", 25 + 1, 177 + 1, 213 + 1, 214 + 1, tocolor(0, 0, 0, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Painel Pessoal", 25, 177, 213, 214, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawLine(23 - 1, 219 - 1, 23 - 1, 255, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 219 - 1, 23 - 1, 219 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 255, 218, 255, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 255, 218, 219 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 219, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawText("Admin", 24, 218, 218, 254, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawLine(23 - 1, 255 - 1, 23 - 1, 291, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 255 - 1, 23 - 1, 255 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 291, 218, 291, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 291, 218, 255 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 255, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 291 - 1, 23 - 1, 327, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 291 - 1, 23 - 1, 291 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 327, 218, 327, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 327, 218, 291 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 291, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 327 - 1, 23 - 1, 363, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 327 - 1, 23 - 1, 327 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 363, 218, 363, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 363, 218, 327 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 327, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 363 - 1, 23 - 1, 399, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 363 - 1, 23 - 1, 363 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 399, 218, 399, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 399, 218, 363 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 363, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 399 - 1, 23 - 1, 435, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 399 - 1, 23 - 1, 399 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 435, 218, 435, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 435, 218, 399 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 399, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 435 - 1, 23 - 1, 471, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 435 - 1, 23 - 1, 435 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 471, 218, 471, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 471, 218, 435 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 435, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 471 - 1, 23 - 1, 507, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 471 - 1, 23 - 1, 471 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 507, 218, 507, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 507, 218, 471 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 471, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawText("Policia", 23, 254, 217, 290, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Mecânico", 23, 291, 217, 327, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Inem", 24, 327, 218, 363, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Inventário", 24, 363, 218, 399, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Animações", 24, 399, 218, 435, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Veiculo", 23, 435, 217, 471, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Informações", 24, 471, 218, 507, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(23, 507, 195, 6, tocolor(255, 63, 63, 182), false) end ele não está organizado da maneira que voce mostrou , tenho que criar outra função com os dxRectangle de parte? mas assim não iria criar conflito tendo 2 funçoes para cada painel?
  5. no caso não é um botão dx é um dxRectangle como posso converte-lo para um botão ?
  6. muito obrigado , esqueci de colocar :V
  7. painel = false function AbrirPainel() if painel == false then addEventHandler ("onClientRender", root, PainelPrincipal) painel = true else removeEventHandler ("onClientRender", root, PainelPrincipal) painel = false end end bindKey("B" , "down" , AbrirPainel) function PainelPrincipal() dxDrawLine(23 - 1, 174 - 1, 23 - 1, 513, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 174 - 1, 23 - 1, 174 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 513, 218, 513, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 513, 218, 174 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 174, 195, 339, tocolor(0, 0, 0, 144), false) dxDrawRectangle(23, 174, 195, 44, tocolor(255, 63, 63, 182), false) dxDrawText("Painel Pessoal", 25 - 1, 177 - 1, 213 - 1, 214 - 1, tocolor(0, 0, 0, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Painel Pessoal", 25 + 1, 177 - 1, 213 + 1, 214 - 1, tocolor(0, 0, 0, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Painel Pessoal", 25 - 1, 177 + 1, 213 - 1, 214 + 1, tocolor(0, 0, 0, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Painel Pessoal", 25 + 1, 177 + 1, 213 + 1, 214 + 1, tocolor(0, 0, 0, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Painel Pessoal", 25, 177, 213, 214, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawLine(23 - 1, 219 - 1, 23 - 1, 255, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 219 - 1, 23 - 1, 219 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 255, 218, 255, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 255, 218, 219 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 219, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawText("Admin", 24, 218, 218, 254, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawLine(23 - 1, 255 - 1, 23 - 1, 291, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 255 - 1, 23 - 1, 255 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 291, 218, 291, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 291, 218, 255 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 255, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 291 - 1, 23 - 1, 327, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 291 - 1, 23 - 1, 291 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 327, 218, 327, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 327, 218, 291 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 291, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 327 - 1, 23 - 1, 363, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 327 - 1, 23 - 1, 327 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 363, 218, 363, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 363, 218, 327 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 327, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 363 - 1, 23 - 1, 399, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 363 - 1, 23 - 1, 363 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 399, 218, 399, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 399, 218, 363 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 363, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 399 - 1, 23 - 1, 435, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 399 - 1, 23 - 1, 399 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 435, 218, 435, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 435, 218, 399 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 399, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 435 - 1, 23 - 1, 471, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 435 - 1, 23 - 1, 435 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 471, 218, 471, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 471, 218, 435 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 435, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawLine(23 - 1, 471 - 1, 23 - 1, 507, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 471 - 1, 23 - 1, 471 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(23 - 1, 507, 218, 507, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(218, 507, 218, 471 - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(23, 471, 195, 36, tocolor(255, 255, 255, 0), false) dxDrawText("Policia", 23, 254, 217, 290, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Mecânico", 23, 291, 217, 327, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Inem", 24, 327, 218, 363, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Inventário", 24, 363, 218, 399, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Animações", 24, 399, 218, 435, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Veiculo", 23, 435, 217, 471, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawText("Informações", 24, 471, 218, 507, tocolor(255, 255, 255, 255), 0.90, "pricedown", "center", "center", false, false, false, false, false) dxDrawRectangle(23, 507, 195, 6, tocolor(255, 63, 63, 182), false) end <meta> <script src="server.Lua" /> <script src="client.Lua" /> </meta>
  8. o script está em client-side
  9. Não agora voltou para o erro antigo Bad argument @ 'bindKey' [Expected player at argument 1 , got string 'B' ]
  10. tem como eu resolver de alguma forma?
  11. Não está dando esse erro mais , agora é "attempt to call global 'keyBind' (a nill value) function AbrirPainel() if painel == false then addEventHandler ("onClientRender", root, PainelPrincipal) painel = true else removeEventHandler ("onClientRender", root, PainelPrincipal) painel = false end end keyBind("F2" , "down" , AbrirPainel)
  12. estou á muito tempo aqui tentando resolver esse erro, já tentei de 2 formas diferentes nesse aqui ele dá bad argument @ bindKey function AbrirPainel () if painel == false then addEventHandler ( "onClientRender", root, PainelPrincipal ) painel = true else removeEventHandler ( "onClientRender", root, PainelPrincipal ) painel = false end end bindKey("F2" , "down" , AbrirPainel) nesse aqui não dá erro nenhum mas o painel não abre. function AbrirPainel () if painel == false then addEventHandler ( "onClientRender", root, PainelPrincipal ) painel = true else removeEventHandler ( "onClientRender", root, PainelPrincipal ) painel = false end end function bindpainel (commandName) bindKey("F2" , "down" , AbrirPainel) end addCommandHandler("painelp" , bindpainel)
  13. meio que entendi, mas no caso eu tenho vários menus ou seja cada botão do meu principal abre outro menu. terei que fazer essa função em todos eles?
  14. no caso ele cria e gera o código para mim, tem algum problema?
×
×
  • Create New...