All Activity

This stream auto-updates     

  1. Past hour
  2. You do not need to use its shader. There is a calculation of Screen Space Reflection for flat surfaces (in fact, the code from that article is not very good and, not from a good life, people write their algorithms for their goals and objectives. In the end, you will always come across Information Lost, because SSR is not a replacement, it is an addition.Even the author of the article has problems with the reflection itself, although I liked the result of the work of reflections on the water in your video (this is used on some meta projects and just the image is cropped a little when the player starts to raise the camera). although I myself have the problem of implementing the correct SSR on machines and I have ideas for calculations, but have not tried it yet.
  3. Boa noite, estou tendo problemas em remover um elemento do lado do cliente, estou usando: function button() local data = getElementData(localPlayer, "abriu") if (data == true ) then outputChatBox("Você já está com o painel aberto.") else setElementData(localPlayer, "abriu", true) buttonss = guiCreateButton(0.5, 0.2, 0.2, 0.05, "Olá Mundo!", true) showCursor(true) end end addCommandHandler("button", button) function hideCursor(button, state, absoluteX, absoluteY) destroyElement(buttonss) showCursor(false) outputChatBox("Olá mundo!") removeElementData(localPlayer, "abriu") end addEventHandler("onClientGUIClick", root, hideCursor) Estava indo tão bem, até porque o setElementData está funcionando corretamente, já o amigo removeElementData não quer funcionar em client-side, alguém pode me ajudar? Agradeço desde já a compreensão :v
  4. Hi Guys, I have problem with starting resources, Its keep show me this message Not starting resource ZA-system as this server version is too low (1.5.7 required)
  5. Today
  6. ok mais agora no lugar de: moneyChange = math.abs(newValue - oldValue) coloco oque em oldvalue ???????????? ficou assim está correto ? function somDimDim() if source == localPlayer then local newValue = getPlayerMoney(source) or 0 if newValue then moneyTick = getTickCount() + 5000 moneyChange = math.abs(newValue - oldValue) if newValue < oldValue then moneyChange = "-$"..moneyChange cor[2] = tocolor(255, 0, 0, 255) else moneyChange = "+$"..moneyChange cor[2] = tocolor(0, 255, 0, 255) end playSound("money.mp3", false) end elseif source == localPlayer then --loadStats() end end addEventHandler ( "onClientRender", root, somDimDim )
  7. Buenas, tengo un error con la GM de roleplay [ paradise ] es un error de mysql y no se mucho de mysql y ya cambie lo del sql [ lo del host y user, etc ] y tambien el settings, me crea todas las tablas menos la que dice characters y no sé como crearla, ya que sin ella no puedo entrar al servidor. [xx-xx-xx xx:xx:xx] ERROR: sql\layout.Lua:91: Unable to create table characters
  8. Se você trocou por get/SetPlayerMoney esse evento será inútil, onClientElementDataChange é um evento de elementData (setElementData). Em vez disso você terá que usar setTimer ou o evento onClientRender para verificar a mudança do getPlayerMoney.
  9. فيه برنامج اسمه IMGTool كنت اطلع التكسدات منه بس المواتر مدري عنها هل تقدر تستخرجها من البرنامج ولا
  10. The problem with this is that Ren712 is using a shader that gets drawn on the screen with dxDrawImage but my water shader is applied to a texture. Applying his image4D_mir to a texture results in nothing, there is obviously something that needs to be changed in order to make it work with a regular texture. And i have no idea what that could be.
  11. como faço pra dizer que o dataname é o getPlayerMoney ?
  12. Na linha do evento onClientMarkerHit, troque root pelo marker específico.
  13. Já tentou usar guiSetInputEnabled?
  14. O evento onClientElementDataChange é ativado sempre que alguma data de algum elemento for alterada, tanto server-side quanto client-side. Isso significa que o som vai tocar sempre que algum script usar setElementData em algum elemento. Você pode adicionar uma condição para tocar o áudio somente se a data que foi alterada possui tal nome. Você pode usar o parâmetro dataName.
  15. https://www.youtube.com/watch?v=A3hjuNUdBio
  16. Hello, thanks for reply! I've tried to implement that method and got the same result. Updated code: using System.Net.Http; private string PostRequest(string text) { var values = new Dictionary<string, string> { { "compile", "1" }, { "debug", "0" }, { "obfuscate", "3" }, { "luasource", "local a = 10" } // example code }; using (var client = new HttpClient()) { var content = new FormUrlEncodedContent(values); var response = client.PostAsync("http://luac.mtasa.com/index.php", content).Result; //var response = client.GetAsync("http://google.com").Result; if (response.IsSuccessStatusCode) { var responseContent = response.Content; // by calling .Result you are synchronously reading the result string resp = responseContent.ReadAsStringAsync().Result; Console.WriteLine(resp); // ERROR Could not compile file return resp; } else { return "Error connecting website"; } } } I had some problems with async methods in sync thread however i fixed it somehow
  17. Sehr geehrte Damen und Herren, Ich präsentiere heute den Trailer zur Version 1.1.5 : https://www.youtube.com/watch?v=nTNjL-Fa8uc&feature=youtu.be Ich würde mich über ein kurzes Feedback freuen!
  18. Olá bom dia então pessoal tenho um mod que quanto ocorre uma transação de dinheiro ele faz um som. Mais ele funcionava com getElementData e eu mudei para getPlayerMoney, ele n funcionou aew fui mexendo até conseguir arrumar mais fica fazendo um som toda hora como se estivesse caindo dinheiro direto !!!!! addEventHandler("onClientElementDataChange", root, function(dataName, oldValue) if source == localPlayer then local newValue = getPlayerMoney(source) or 0 if newValue then moneyTick = getTickCount() + 5000 moneyChange = math.abs(newValue - oldValue) if newValue < oldValue then moneyChange = "-$"..moneyChange cor[2] = tocolor(255, 0, 0, 255) else moneyChange = "+$"..moneyChange cor[2] = tocolor(0, 255, 0, 255) end playSound("money.mp3", false) end elseif source == localPlayer then --loadStats() end end)
  19. According to the MSDN, WebResponse should not be used for new projects (see: https://docs.microsoft.com/en-us/dotnet/api/system.net.webrequest?view=netframework-4.8). Instead, we have System.Net.Http.HttpClient now. That function allows you to conviniently pass in form-encoded data via a Dictionary. See here for an example: https://stackoverflow.com/a/4015346/10035431
  1. Load more activity