IsTransferBoxAlwaysVisible: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
Line 12: Line 12:


==Example==
==Example==
{{Needs Example}}
This command powered example shows if localplayer enabled TransferBox always visibility in settings
<syntaxhighlight lang="lua">
function checkTransferBoxAlwaysVisibility()
    outputChatBox(isTransferBoxAlwaysVisible() and "TransferBox always visibility enabled" or "TransferBox always visibility disabled")
end
addCommandHandler("transferbox_check", checkTransferBoxAlwaysVisibility)
</syntaxhighlight>


==Requirements==
==Requirements==

Revision as of 16:12, 22 May 2022

Determines if the transfer box should be always visible during downloads. Players can forcefully show the transfer box through a user setting, even if disabled by scripts.

Syntax

bool isTransferBoxAlwaysVisible ( )

Returns

Returns a boolean, whether the transfer box should be always visible or not.

Example

This command powered example shows if localplayer enabled TransferBox always visibility in settings

function checkTransferBoxAlwaysVisibility()
    outputChatBox(isTransferBoxAlwaysVisible() and "TransferBox always visibility enabled" or "TransferBox always visibility disabled")
end
addCommandHandler("transferbox_check", checkTransferBoxAlwaysVisibility)

Requirements

Minimum server version n/a
Minimum client version 1.5.8-9.20788

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.5.8-9.20788" />

See Also