samp.directory
← Scripts and libraries

devbluen/textdraw-cancel

Get more precise information about deselecting and interacting with the Esc key in your textdraws.

Library★ 5updated Apr 2026No licencePawn
Open on GitHub

This repository has no licence file. It is public to read, but that alone does not give permission to reuse it.

Try it in the Pawn compiler →

Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.

README.md

🫧 Textdraw Cancel

Get more precise information about deselecting and interacting with the Esc key in your textdraws.

📝 How to install?

  1. Download textdrawCancel.inc
  2. Put this Place this include inside your includes folder: qawno/include or pawno/include
  3. Write #include <textdrawCancel> in your gamemode (.pwn) file.

📜 Usage Example

Every time you press ESC, this callback will be called.

public OnPlayerTextdrawClose(playerid) {

    if(Inventory_Created(playerid))
        Inventory_Close(playerid);
        
}

⚙️ Callback

forward OnPlayerTextdrawClose(playerid)

🍪 Dependencies

This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing

devbluen/textdraw-cancel: SA-MP Library | samp.directory