Class Resource
  Represents a client-side Lua resource
 
  
  
  
  
  Assembly: SlipeServer.Server.dll
  Syntax
  
  Constructors
  
    |
    Edit this page
  
  
    View Source
  
  
  Resource(MtaServer, RootElement, string, string?)
  
  
  Declaration
  
    public Resource(MtaServer server, RootElement root, string name, string? path = null)
   
  Parameters
  
  Properties
  
    |
    Edit this page
  
  
    View Source
  
  
  DynamicRoot
  
  
  Declaration
  
    public DummyElement DynamicRoot { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Exports
  
  
  Declaration
  
    public List<string> Exports { get; init; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Files
  
  
  Declaration
  
    public List<ResourceFile> Files { get; init; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  IsOopEnabled
  
  
  Declaration
  
    public bool IsOopEnabled { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Name
  
  
  Declaration
  
    public string Name { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  NetId
  
  
  Declaration
  
    public ushort NetId { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  NoClientScripts
  
  
  Declaration
  
    public Dictionary<string, byte[]> NoClientScripts { get; init; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Path
  
  
  Declaration
  
    public string Path { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  PriorityGroup
  
  
  Declaration
  
    public int PriorityGroup { get; set; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Root
  
  
  Declaration
  
    public DummyElement Root { get; }
   
  Property Value
  
  Methods
  
    |
    Edit this page
  
  
    View Source
  
  
  Start()
  
  
  Declaration
  
  
    |
    Edit this page
  
  
    View Source
  
  
  StartFor(Player)
  
  
  Declaration
  
    public void StartFor(Player player)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Player | 
        player | 
         | 
      
    
  
  
    |
    Edit this page
  
  
    View Source
  
  
  StartForAsync(Player, CancellationToken)
  
  
  Declaration
  
    public Task StartForAsync(Player player, CancellationToken cancelationToken = default)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Stop()
  
  
  Declaration
  
  
    |
    Edit this page
  
  
    View Source
  
  
  StopFor(Player)
  
  
  Declaration
  
    public void StopFor(Player player)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Player | 
        player | 
         |