isTransferBoxActive | Multi Theft Auto: Wiki Skip to content

isTransferBoxActive

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function returns whether the file downloading dialog box is active or not. This appears when a resource is started and the client doesn't have all the files that resource requires the client to have.

OOP Syntax Help! I don't understand this!

Syntax

bool isTransferBoxActive ( )

Returns

  • bool: value

Returns true if the file transfer box is visible, false if not.

Code Examples

shared

This makes the camera fade in, once all resource downloads are finished.

function checkTransfer()
if isTransferBoxActive() then
setTimer(checkTransfer, 2000, 1) -- TransferBox is still active, check again after 2 seconds.
else
fadeCamera(true) -- TransferBox isn't active, fade in camera.
end
end
addEventHandler("onClientResourceStart", resourceRoot, checkTransfer)

See Also

GUI Functions