Difference between revisions of "SetTransferBoxVisible"

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(add setTransferBoxVisible)
 
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
{{Server client function}}
 
{{Server client function}}
{{New feature/item|3.0160|1.5.8|20788|Determines whether or not the transferbox should appear to [[players]].}}
+
{{New feature/item|3.0159|1.5.8|20788|Determines whether or not the transferbox should appear to [[Player|players]].}}
  
 
==Syntax==
 
==Syntax==
Line 17: Line 17:
  
 
<section name="Server" class="server" show="true">
 
<section name="Server" class="server" show="true">
This example creates a ped, rotates him, and makes him walk:
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
addEventHandler('onResourceStart', resourceRoot, function()
 
addEventHandler('onResourceStart', resourceRoot, function()
Line 27: Line 26:
 
==Requirements==
 
==Requirements==
 
{{Requirements|1.5.8-9.20788|1.5.8-9.20788|}}
 
{{Requirements|1.5.8-9.20788|1.5.8-9.20788|}}
 +
 +
==See Also==
 +
{{Shared_server_functions}}

Latest revision as of 11:18, 11 April 2021

BETA: FROM VERSION 1.5.8 r20788 ONWARDS
Determines whether or not the transferbox should appear to players.

Syntax

bool setTransferBoxVisible ( bool visible )

Required Arguments

  • visible: The new visibility state.

Returns

Returns true if the visibility was set successfully, false otherwise.

Examples

Click to collapse [-]
Server
addEventHandler('onResourceStart', resourceRoot, function()
    setTransferBoxVisible(false)
end)

Requirements

Minimum supported server 1.5.8-9.20788
Minimum supported client 1.5.8-9.20788

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

See Also

BETA: FROM VERSION 1.5.8 r20788 ONWARDS