Toribash
Prev Previous Post   Next Post Next
Original Post
file.read help
hey guys,
i just made a quick simple little friends list lua program
i was wondering how to use the file.read command and how to read the names of your friends from a .txt file
function Display_Friends(key)
	if (key == string.byte("q")) then
		run_cmd("sa 'friend'")
	end
end

add_hook("key_down", "Friendslist", Display_Friends)
thanks in advance