Jump to content

[HELP] setTransferBoxVisible does not work at all


Turbesz

Recommended Posts

Posted

I using an custom download screen, and the setTransferBoxVisible thing was worked before, but now does not hide the box...

code:

function downloadComplete()
    showCursor(false)

    --if percentage == -0 then return end

    if getElementData(localPlayer,"logined") == true then return end
    if not isTransferBoxActive() then
        stopSound(zene)
        --c = nil
        setTransferBoxVisible(true)

        removeEventHandler("onClientRender", root, downloadingScreen)
    else
        setTimer(downloadComplete,500, 1)
    end
end

addEventHandler("onClientResourceStart", resourceRoot, function()
    showCursor(false)

    if percentage == -0 then percentage = 0 end

    if getElementData(localPlayer,"logined") == true then return end
    setTransferBoxVisible(false)

    addEventHandler("onClientRender", root, downloadingScreen)

    zene = playSound("files/zene.mp3", true) -- Play song
    --setSoundVolume(c.song, c.vol)
    showChat(false)

    setTimer(downloadComplete, 500, 1)

end)

I tried with server trigger, and with everything but nothing... what wrong, how to fix?

What if the only way not to feel bad, is to stop feeling, anything at all, forever?
- Hannah Baker

I cost a girl her life because I was afraid to love her...
- Clay Jensen

 ~ 13 Reasons Why

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...