Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. function my_inventory()
  3. local stdin, stdout, pid = spawn_pipe("mtn", "au", "inventory")
  4. stdin:close()
  5. local x = stdout:read()
  6. while x
  7. do
  8. io.stdout:write(x .. "\n")
  9. x = stdout:read()
  10. end
  11. end
  12.  
  13.  
  14. register_command("my_inventory", "", "", "call inventory", "my_inventory")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement