Setting a table as file.Read?

customCheck = function(ply) local policetable1 = file.Read(“policesgtmjr.txt”, “DATA”) return table.HasValue(policetable1, ply:SteamID()) end,

I’m trying to set policetable to be the contents of the text file. The file exists and contains {“STEAMID1”, “STEAMID2”}

Is it the local policetable1 that’s failing?

(Error is Bad argument #1 to ‘pairs’ expected table got nil)

Also could I make this

table.HasValue(file.Read(“policesgtmjr.txt”, “DATA”), ply:SteamID())

Is it saved as a JSON table?

Shit no.

[editline]24th May 2014[/editline]

Does it need to be