local function callOtherFunction(func, …)
func(…)
end
Basically you can send a function so that the other function can call it, but you can’t tell the other function exactly what the parameters are. You will have to pass them inside the function.
The … in this example is valid code that just tells the outer function to pass any extra parameters through to the inner function.
But you could give dedicated parameters instead in the outer function you just pass through.
If you need more control, you can technically split up the … as you need, but generally you’re probably better off redesigning if it comes to that.