You don't have to worry about calling it too soon with zo_callLater.
Lua is singlethreaded and there are no interrups, which means the function you call later will always run after the current call stack finished executing.
The only problem I see compared to a real post hook is that you cannot guarantee that no other functions run in the meantime.
|