Facepunch/garrysmod-issues

file.AsyncRead doesn't work in the Menu State.

RaphaelIT7 opened this issue · 3 comments

Details

file.AsyncRead doesn't work in the Menu State. Tested on all Branches

Steps to reproduce

file.Write("example.txt", "Example") -- creating a file for testing
file.AsyncRead("example.txt", "DATA", function(_, _, status, content)
	print("Async Read: " .. status, content)
end)
print("Read: " .. file.Read("example.txt", "DATA"))

Output:

Read: Example

Yes, I have encountered this problem, without the help of external modules it is impossible to fix it.

I am not interested in any menu state Lua issues. It is not meant to be used at all.

indeed