Skip to content

Instantly share code, notes, and snippets.

--Please remember this is out of context
--at the beginning of your program
local ids = {1,2,3,4}
local function isAllowed(id)
for i = 1,#ids do
if id == ids[i] then return true end
end
return false
end
--when you want to check for id and message