# Hooks

<table><thead><tr><th width="275">Hook</th><th>Description</th></tr></thead><tbody><tr><td>SAKURA_MENU_RENDER</td><td>Calls every frame when a menu is open.</td></tr><tr><td>SAKURA_WINDOW_RENDER</td><td>Calls every frame after inject.</td></tr><tr><td>SAKURA_BACKGROUND_RENDER</td><td>Calls every frame inject.</td></tr><tr><td>SAKURA_CLIENT_MOVE</td><td>Calls when a local player is moving.</td></tr><tr><td>SAKURA_CLIENT_BIND</td><td>Calls when a local player is using custom bind from cheat/script.</td></tr><tr><td>SAKURA_DEATH_MESSAGE</td><td>Calls when a player dies.</td></tr><tr><td>SAKURA_NEWROUND_MESSAGE</td><td>Calls on new round.</td></tr><tr><td>SAKURA_SELFDAMAGE_MESSAGE</td><td>Calls when local player is receiving damage.</td></tr><tr><td>SAKURA_SOUND_INIT</td><td>Calls once after inject to load sounds to use.</td></tr><tr><td>SAKURA_DYNAMICSOUND_PLAY</td><td>Calls everytime the dynamic sound is played.</td></tr><tr><td>SAKURA_ADD_ENTITY</td><td>Function triggered when an entity message is received</td></tr></tbody></table>

You can use one of these hooks or even all by using this function:

```lua
-- Registers a Lua function to be called back by the sakura cheat at a certain event type.
-- Parameters:
--     type: the type of the event to register the callback for.
--     function: the Lua function to call back when the event of specified type occurs.
Hooks.Register(type, function)
```
