SetTransferBoxVisible: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(add setTransferBoxVisible)
 
No edit summary
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()

Revision as of 14:14, 18 January 2021

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

This template will be deleted.