1. Yip, i believe using the code after a "NextTick" should be enough time. Otherwise a very short timer of 0.1-0.2 would also do the job, but i'm no fan of timers for such things.

    And yes, learning how to go through the code is, in my opinion, the best for starting everything. It's always best decision first to find out how FacePunch did it happen, what in conclusion provide you an easier way to to the same, reverting things, converting or anything else.
    I use in my plugins very often refurbished code from original functions of the game...If they match my needs :)
     
  2. Okay well, after some research I decided to go with a timer. The finish product is here. Healthy Guns for Rust | Oxide

    So far it's been running on a high population server for three days without issues.
     
    Last edited by a moderator: Jan 2, 2017