UnregisterHook

The UnregisterHook unregisters a callback for a UFunction.

Parameters

#TypeInformation
1stringFull name of the UFunction to hook. Type prefix has no effect.
2integerThe PreId of the hook
3integerThe PostId of the hook

Example

local preId, postId = RegisterHook("/Script/Engine.PlayerController:ClientRestart", function()
    print("PlayerController restarted\n")
end)

UnregisterHook("/Script/Engine.PlayerController:ClientRestart", preId, postId)