SetTransferBoxVisible

From Multi Theft Auto: Wiki

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