IsTransferBoxVisible: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 20: Line 20:
     if isTransferBoxVisible() then  
     if isTransferBoxVisible() then  
         setTransferBoxVisible(false)
         setTransferBoxVisible(false)
         outputChatBox("* "..getPlayerName(localPlayer).." you are downloading the server!", 255, 255, 255, true)
         outputChatBox("* "..getPlayerName(localPlayer).." you are downloading the server!", 255, 255, 255, true)    
    else
        outputChatBox("* "..getPlayerName(localPlayer).." you are not downloading the server!", 255, 255, 255, true)       
     end
     end
end
end

Revision as of 19:50, 1 July 2021

Determines if the transfer box should be 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.

Examples

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)

Requirements

This template will be deleted.

See Also