Skip to main content
Finds the named metamethod on a value and replaces that metamethod function with the provided replacement. The metamethod name must be a string and the replacement must be a function.

Syntax

Arguments

Returns

Example

Hook an existing metamethod function.