Skip to content

melon.tool

garryspins edited this page Feb 27, 2026 · 3 revisions

melon.tool


shared link

Handles runtime (non-file) STool creation
melon

Functions

melon.tool.LoadToolObj

shared link internal
melon.tool.LoadToolObj()

melon.tool.New

shared link
melon.tool.New(class: string, t: table) -> table

Argument and Return information

Arguments

# Name Type Description
1 class string Classname of the tool
2 t table The TOOL table, can be empty

Returns

# Name Type Description
1 t table The passed in/created TOOL table

Defines a new hotloaded tool

melon.tool.OnReload

shared link internal
melon.tool.OnReload()

melon.tool.Register

shared link internal
melon.tool.Register()

Internally registers a TOOL

Clone this wiki locally