Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_inventory()
- local stdin, stdout, pid = spawn_pipe("mtn", "au", "inventory")
- stdin:close()
- local x = stdout:read()
- while x
- do
- io.stdout:write(x .. "\n")
- x = stdout:read()
- end
- end
- register_command("my_inventory", "", "", "call inventory", "my_inventory")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement