the kind of hook i want to do
my current hookCode:object obj = Interface.CallHook("CanUseDoor", new object[] { player, this }); if (obj is bool) { return (bool)obj; }
Code:if (Interface.CallHook("OnUnlockWithCodeFailed", new object[] { this, rpc }) != null) { return; }
oh and is it possible to get my 2 hooks published in oxide releases, they will be used by a plugin to stop people brute forcing code locks via sending 100s of packets, if it is great ill pm you or something when its done
How can i do a hook like this
Discussion in 'Rust Discussion' started by ownprox, Jul 15, 2015.
-
ExitWithValidType depends on the method signature. If the method signature type is of void then you can only use the != null check.
Everything else is just using the argument string to send the correct args you need. -
@Wulf
oh and is it possible to get my 2 hooks published in oxide releases, they will be used by a plugin to stop people brute forcing code locks via sending 100s of packets, if it is great ill pm you or something when its done -