IsTransferBoxVisible

From Multi Theft Auto: Wiki
Revision as of 17:25, 7 November 2024 by Fernando187 (talk | contribs) (Remove obsolete Requirements section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Determines if the transfer box is visible.

Syntax

bool isTransferBoxVisible ( )

Returns

On server this returns a boolean, whether the transfer box should be visible during downloads or not.

On client this returns a boolean, whether the transfer box should be visible or not at the time of invocation.

Example

Click to collapse [-]
Client

This example defines a command to remove the player's transfer box.

function isVisible ()
    if isTransferBoxVisible () then 
        setTransferBoxVisible (false)
        outputChatBox ("* "..getPlayerName (localPlayer).." you are downloading the server!", 255, 255, 255, true)      
    end
end
addCommandHandler ("download2", isVisible)

See Also