1. the kind of hook i want to do
    Code:
    object obj = Interface.CallHook("CanUseDoor", new object[]
        {
            player,
            this
        });
        if (obj is bool)
        {
            return (bool)obj;
        }
    my current hook
    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
     
    Last edited by a moderator: Jul 15, 2015
  2. 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.
     
  3. ah it make sense lol i dint realise it was to do with the functions type thanks mate


    @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
     
  4. nice thanks. should of really looked myself but everyones speedy to answer my questions anyway, i have only worked on rust for like a week 6 - 7 months ago just came back, i kinda left due to the cost of actually paying for a dedicated server that could handle 100 - 200 players and the fact the sever is such a memory whore (seems like they improved it abit)