Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/03/23 in all areas

  1. É uma função que ajuda no desenvolvimento, faz com que você habilite o modo desenvolvedor. Você consegue ativá-la usando setDevelopmentMode (true) só funciona client-side. Também dá pra você ativá-la no painel Admin, na aba Resources. Digite ali no campo de comando e clique em Client. Eu fiz meu painel de login ativar essa função automaticamente quando eu faço login. Para evitar o empenho de ir ali no painel Admin ativar o modo desenvolvedor toda vez q preciso dos comandos especiais. Depois que ela está ativada, você passa a ter acesso a esses 2 comandos especiais. /showcol - Mostra/oculta os colshapes só para você. (aqueles criados com createColCuboid, createColSphere, etc) /showsound - Mostra/para de mostrar os IDs dos sons do cenário no seu Debug Console. Precisa estar com /debugscript ativo para ver o Debug Console.
    1 point
  2. Thank you! For those people who have the same problem. It is necessary to increase the streaming memory at the time of compilation, and set the maximum video memory in the client itself.
    1 point
  3. Refer to Gimbal Lock of Euler rotation system. To resolve this, use rotation matrix to apply rotation changes, and then convert back to eular angles.
    1 point
  4. Nunca use source como parâmetro de função. A variável res não é uma table. Acho que você queria usar getResources para obter uma table com todos os resources.
    1 point
  5. ok my friend. I'll post here once it's done
    1 point
  6. Change line 4 to your text. local sx,sy = guiGetScreenSize() local px,py = 1920,1080 local x,y = (sx/px), (sy/py) local text = "TEST" local N = {} function N2() local now = getTickCount() local elapsedTime = now - N.startTime local duration = N.endTime - N.startTime local progress = elapsedTime / duration local width, _, _ = interpolateBetween ( N.startSize[1], 0, 0, N.endSize[1],0, 0, progress, "OutQuad") dxDrawText(text, x*1100, y*24, x*787, x*119, tocolor(255, 255, 255, width), 3.00, "default-bold", "center", "top", false, false, false, false, false) if now >= N.endTime then removeEventHandler("onClientRender",root,N2) end end function N1() local now = getTickCount() local elapsedTime = now - N.startTime local duration = N.endTime - N.startTime local progress = elapsedTime / duration local width, _, _ = interpolateBetween ( N.startSize[1], 0, 0, N.endSize[1],0, 0, progress, "OutQuad") dxDrawText(text, x*1100, y*24, x*787, x*119, tocolor(255, 255, 255, width), 3.00, "default-bold", "center", "top", false, false, false, false, false) if now >= N.endTime then addEventHandler("onClientRender",root,N2) end end addEventHandler( "onClientResourceStart", getRootElement( ), function () N.startTime = getTickCount() N.startSize = {0} N.endSize = {255} N.endTime = N.startTime + 5000 addEventHandler("onClientRender", getRootElement(), N1) dr = setTimer ( function() N.startTime = getTickCount() N.startSize = {255} N.endSize = {0} N.endTime = N.startTime + 5000 addEventHandler("onClientRender", getRootElement(), N2) end, 10000, 1 ) end )
    1 point
×
×
  • Create New...