Unhook

Remove a hook by slot ID.

Syntax

Susano.Memory.Unhook(hookId) -> boolean

Parameters

hookId (integer): The ID returned by Hook.

Return(s)

boolean: true on success, false if the ID is not a live hook owned by this environment.

Example(s)

local hookId = Susano.Memory.Hook(addr, "v:", function() end)
-- ...
Susano.Memory.Unhook(hookId)