Skip to content

Instantly share code, notes, and snippets.

@tbergeron
Created November 1, 2012 02:00
Show Gist options
  • Save tbergeron/3991160 to your computer and use it in GitHub Desktop.
Save tbergeron/3991160 to your computer and use it in GitHub Desktop.
function staff.callFunctionForEachEmployee(functionName, args)
if employee_instances then
table.foreach(employee_instances, function(i)
local employee = employee_instances[i]
if args then
if type(args) == "table" then
args = unpack(args)
end
end
employee(functionName, args)
end)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment