Summary

Functions

Builds the tool's settings panel: the mode, the name, the message, the password, the share of slots to fill and the category of the items to fill with.

Methods

Runs the handler of the selected mode on the container that was hit.
Applies the selected mode to the container the owner is looking at.
Removes what the selected mode sets from the container the owner is looking at: its name, its message or its password.

Functions

Builds the tool's settings panel: the mode, the name, the message, the password, the share of slots to fill and the category of the items to fill with.

Parameters

  • panel Panel the tool's control panel

Methods

TOOL:ApplyMode(trace, reset)

shared plugins/containers/plugin/tools/sh_container.lua:113

Runs the handler of the selected mode on the container that was hit. Serverside only.

Parameters

  • trace Map trace result of the tool owner's aim
  • reset Boolean true to remove what the mode sets instead of setting it

Returns

  • Boolean true if the container was changed, false if it was not, nil if the owner lacks the 'manage_containers' permission

Applies the selected mode to the container the owner is looking at.

Parameters

  • trace Map trace result of the tool owner's aim

Returns

  • Boolean true if the container was changed (always true clientside), false if it was not, nil if the owner lacks the 'manage_containers' permission

Removes what the selected mode sets from the container the owner is looking at: its name, its message or its password.

Parameters

  • trace Map trace result of the tool owner's aim

Returns

  • Boolean true if the container was changed (always true clientside), false if it was not, nil if the owner lacks the 'manage_containers' permission

Defined in