Rust+.py Docs
  • Getting Started
    • Welcome to the Rust+.py Docs!
    • Quick Start
    • Getting Player Details
      • FCM Listener
      • Getting Entity ID's
    • RustSocket
      • Rate Limiting
  • API methods
    • Removing Listeners
    • Getting Team Info
    • Getting Team Chat
    • Getting Server Info
    • Getting the Map
    • Sending Messages
    • Getting the Time
    • Getting Entity Information
    • Getting Map Markers
    • Getting Contents of Monitors
    • Promoting Players to Team Leader
  • Command System
    • Commands Overview
    • Command Options
    • Command Decorator
    • Hanging The Socket
  • Event System
    • Events Overview
  • Cameras
    • Camera Managers
Powered by GitBook
On this page

Was this helpful?

  1. API methods

Getting Contents of Monitors

Calling rust_socket.get_contents(eid: int, combine_stacks: bool) returns a RustContents object:

class RustContents with fields:

protection_time: timedelta
has_protection: bool
contents : List[RustItem]
        
class RustItem with fields:

name: str
item_id: int
quantity: int
is_blueprint: bool

PreviousGetting Map MarkersNextPromoting Players to Team Leader

Last updated 3 years ago

Was this helpful?