Jump to content

STRANGEROUS

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by STRANGEROUS

  1. function dxDrawRectangle(x, y, width, height, radius, color, postGUI)
        if not x or not y or not width or not height or not radius or not color then
            return
        end
        local radius = math.min(radius, width/2, height/2)
        dxDrawRectangle(x + radius, y, width - radius * 2, height, color, postGUI)
        dxDrawRectangle(x, y + radius, radius, height - radius * 2, color, postGUI)
        dxDrawRectangle(x + width - radius, y + radius, radius, height - radius * 2, color, postGUI)
        dxDrawCircle(x + radius, y + radius, radius, 180, 270, color, postGUI)
        dxDrawCircle(x + width - radius, y + radius, radius, 270, 360, color, postGUI)
        dxDrawCircle(x + radius, y + height - radius, radius, 90, 180, color, postGUI)
        dxDrawCircle(x + width - radius, y + height - radius, radius, 0, 90, color, postGUI)
    end

     

  2. local fps, fpsTick = 0, 0
     
    function getCurrentFPS()
        return fps
    end
     
    local function getUpdateFPS(ms)
        local now = getTickCount()
        if (now >= fpsTick) then
            fps = (1 / ms) * 1000
            fpsTick = now + 1000
        end
    end
    addEventHandler("onClientPreRender", root, getUpdateFPS)
     
    addEventHandler('onClientRender', root, function()
     
        local getFPS = math.floor(getCurrentFPS())
       
        dxDrawText("FPS: "..getFPS, 1280*sx, 620*sy, 0*sx, 0*sy, tocolor(255, 255, 255), 1*sx, 1*sy, "default-bold", "center", "top", false, false, false, true, false)
    end)

    MngD4pX.png
  3. Ocupo ayuda, tengo un userpanel y tengo un problema para dar donator cuando pongo /vip "player" "días" me aparece con letras rojas "Que debo de tener permiso de administrador para hacer esto" y no entiendo si él admin soy yo alguien me puede ayudar? 

    Gracias :)

×
×
  • Create New...