Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 23/04/18 in all areas

  1. the nonMRT effect transforms view and projection matrix to render the resized object/vehicle/ped close to the near clipping plane. So the vehicle is drawn on the screen when "GTA draws world'. the MRT effect draws the vehicle to a renderTarget that can be drawn dxDrawImage (onClientRender). Example: https://nightly.multitheftauto.com/files/shaders/shader_multi_rt_test.zip
    2 points
  2. Pra evitar esses erros no calculo, você pode fazer uma verificação nas kills/deaths. E para funcionar com números fracionados use a função math.round. Um código de exemplo: local kills, deaths = 1, 0 print( math.round( getPlayerRatio( kills, deaths ), 2 ) ) --> 0 kills, deaths = 13, 6 print( math.round( getPlayerRatio( kills, deaths ), 2 ) ) --> 2.16 function getPlayerRatio( kills, deaths ) return (kills == 0 or deaths == 0) and 0 or (kills / deaths) end -- math.round(valor, casas_decimais) function math.round(number, decimals, method) decimals = decimals or 0 local factor = 10 ^ decimals if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor else return tonumber(("%."..decimals.."f"):format(number)) end end
    1 point
  3. deatchmach/resources/atm/meta.xml yi aç <export function="createBanking" type="client"/> bu kodu ekleyerek çalıştır bakalım ve alttaki kod function atm(element) exports["atm"]:createBanking() end addEvent( "atm", true ) addEventHandler( "atm", getRootElement(), atm )
    1 point
  4. 1 point
  5. Thanks. m8 Also, i appreciate your explanation to.
    1 point
  6. I guess you're in wrong language section buddy. Also paste code using this button next time: Your code works perfectly. Make sure you wrote meta.xml correct like this where sv.lua - your lua file with your code
    1 point
  7. يالله عقبال الألف ! وبالتوفيق لكم !
    1 point
  8. guiSetVisible(mywnd,true) -- هوو يبيها تفتح بالوجه زي لوحة التسجيل مو تقفل @#DesTroeyR
    0 points
×
×
  • Create New...