💜
Sakura
  • 👋Welcome
  • Information
    • 🎯Quick start
    • ⚜️Common knowledge
    • 💾Examples
      • *️Rendering menus, windows
  • documentation
    • 🪝Hooks
    • ⚙️Variables
      • 🍎Weapon ids
      • 🍎Inputs
      • 🍎Keys
      • 🍎Flags
      • 🍎ImGui Window Flags
    • 📛Namespaces
      • 🍏Game
      • 🍏ImGui (Menu)
      • 🍏Render
      • 🍏Local Player
      • 🍏Player
      • 🍏Notify
Powered by GitBook
On this page
  1. documentation

Hooks

List of cheat hooks that you can use to write new features

Hook
Description

SAKURA_MENU_RENDER

Calls every frame when a menu is open.

SAKURA_WINDOW_RENDER

Calls every frame after inject.

SAKURA_BACKGROUND_RENDER

Calls every frame inject.

SAKURA_CLIENT_MOVE

Calls when a local player is moving.

SAKURA_CLIENT_BIND

Calls when a local player is using custom bind from cheat/script.

SAKURA_DEATH_MESSAGE

Calls when a player dies.

SAKURA_NEWROUND_MESSAGE

Calls on new round.

SAKURA_SELFDAMAGE_MESSAGE

Calls when local player is receiving damage.

SAKURA_SOUND_INIT

Calls once after inject to load sounds to use.

SAKURA_DYNAMICSOUND_PLAY

Calls everytime the dynamic sound is played.

SAKURA_ADD_ENTITY

Function triggered when an entity message is received

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

-- 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)

PreviousRendering menus, windowsNextVariables

Last updated 2 years ago

🪝