Closures

isfunctionhooked

Returns whether a function has been hooked through the executor hook system.

Syntax

isfunctionhooked(func: function): boolean

Arguments

NameTypeDescription
funcfunctionFunction to test.

Returns

NameTypeDescription
hookedbooleanTrue when the function is currently hooked.

Description

Returns whether a function has been hooked through the executor hook system.

Call it with 1 parameter(s): func. The argument table explains which values are required and which ones only refine the behavior.

It returns hooked (boolean). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = isfunctionhooked(function() end)
print(result)