Get the corpse by monitoring OnEntitySpawned and checking for a corpse (BaseCorpse or possibly even LootableCorpse) The loot is a ItemContainer[] called "containers" in the LootableCorpse component Then you can do what ever you wish with the items You can see further information by checking out Restore Upon Death for Rust | Oxide