Called when a func_break is broken by a player.
This is a basic template with the purpose of including all arguments / table variables to make it easily known which values can be accessed.
gameevent.Listen( "break_breakable" ) hook.Add( "break_breakable", "break_breakable_example", function( data ) local entindex = data.entindex // The Entity:EntIndex() of the broken Prop. local userid = data.userid // The UserID of the connected Player. Seems to be 0 every time. local material = data.material // The Material index of the broken entity. // Called when a func_break is broken by a player. end )