SetTransferBoxVisible: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
{{ | {{Added feature/item|1.5.9|1.5.8|20788|Determines whether or not the transfer box should appear to [[Player|players]].}} | ||
==Syntax== | ==Syntax== | ||
Line 9: | Line 9: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''visible:''' The new visibility state. | *'''visible:''' The new transfer box visibility state. | ||
===Returns=== | ===Returns=== | ||
Line 15: | Line 15: | ||
==Examples== | ==Examples== | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
addEventHandler( | addEventHandler ("onResourceStart", resourceRoot, function() | ||
setTransferBoxVisible(false) | setTransferBoxVisible (false) | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> | ||
== | ==See Also== | ||
{{ | {{Server_functions}} |
Latest revision as of 17:24, 7 November 2024
Determines whether or not the transfer box should appear to players.
Syntax
bool setTransferBoxVisible ( bool visible )
Required Arguments
- visible: The new transfer box visibility state.
Returns
Returns true if the visibility was set successfully, false otherwise.
Examples
Click to collapse [-]
ServeraddEventHandler ("onResourceStart", resourceRoot, function() setTransferBoxVisible (false) end)
See Also
- getMaxPlayers
- getServerConfigSetting
- getServerHttpPort
- getServerName
- getServerPassword
- getServerPort
- isGlitchEnabled
- setGlitchEnabled
- setMaxPlayers
- setServerConfigSetting
- setServerPassword
- shutdown