31 lines
		
	
	
		
			No EOL
		
	
	
		
			732 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			No EOL
		
	
	
		
			732 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| 
 | |
| # Thanks for buying ws_einreise!
 | |
| # Please read carefully
 | |
| # also do not forget to import the sql (sql/sql.sql)
 | |
| 
 | |
| # NEW: API Support for ws_support-cp
 | |
| # You can find a example in /server/api.lua
 | |
| 
 | |
| # PERMISSIONS (server.cfg)
 | |
| add_ace group.admin ws_einreise allow
 | |
| add_ace identifier.discord:0000000000 ws_einreise allow
 | |
| 
 | |
| ## SERVER EXPORTS ##
 | |
| 
 | |
| ```lua
 | |
| local info = exports["ws_einreise"]:GetInfo()
 | |
| 
 | |
| print("New Players: " .. info.einreise)
 | |
| print("Admins on Duty: " .. info.duty)
 | |
| ```
 | |
| 
 | |
| ```lua
 | |
| local admin = 1
 | |
| local target = 2
 | |
| local text = "Einreise bestanden"
 | |
| 
 | |
| local success, errMsg = exports["ws_einreise"]:Whitelist(admin, target, text)
 | |
| 
 | |
| print("Success", tostring(success))
 | |
| print("Error", tostring(errMsg))
 | |
| ``` | 
