How can i hook when a player closes a container (Large Wooden Box)?
Solved OnStoppedLooting() for Containers
Discussion in 'Rust Development' started by Spoof 2, Nov 20, 2015.
-
Wulf Community Admin
Well, you could check if the player is looting or not, but there isn't a hook for that right now that I am aware of.
-
Okey.
I see that Quick Sort mod is using "private void PlayerStoppedLooting(BasePlayer player)", but im not sure what hooks it...
Thank you anyway. -
Wulf Community Admin
There's also another topic on this as well: Detecting player stops looting container? (Lua) | Oxide. -
I was about to use that, when i saw this
Code:Hook changes Added OnPlayerLootEnd(PlayerLoot inventory) hook.