Skip to main content

register_unhook_function

Function register_unhook_function 

Source
pub fn register_unhook_function(
    lua: &Lua,
    registry: SharedHookRegistry,
) -> Result<(), LuaError>
Expand description

Registers the orcs.unhook(id) function on the orcs global table.

Removes a previously registered hook by its ID. Returns true if the hook was found and removed, false otherwise.

ยงErrors

Returns an error if Lua function creation or table insertion fails.