Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Restores a hooked function, or replaces one function with another when two function arguments are provided. The first argument must be a function.
restorefunction(firstFunction: function, secondFunction?: function)
restorefunc
restoreclosure
firstFunction
function
secondFunction
local function target() return "original" end hookfunction(target, function() return "hooked" end) print(target()) restorefunction(target) print(target())