BeforeDraw event to plugin

i'm gona make a new plugin (security hash) and i needed this event before drawing template.