Skip to content

Latest commit

 

History

88 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextDraw Designer

A web-based visual editor for creating SA-MP and open.mp TextDraws. Design your HUD directly in the browser and export ready-to-paste Pawn code, no server required.

Why this exists

Most TextDraw editors are either in-game tools that require running a SA-MP server, or basic web tools with limited features. This one runs entirely in the browser, has a proper layer system, supports multiple background images (layers) as a reference, and exports clean Pawn code for both Global and Player TextDraws.

If you like this project, consider supporting us!

PayPal Patreon


Screenshots

Editor

Full editor view The main canvas. Elements can be dragged, resized and selected individually or in a group. The left panel handles adding and organizing elements, the right panel shows properties for whatever is selected.


Sprite Browser

Browse all known GTA SA sprite libraries by name or filter by library.

Pawn Export

Export modal

The export generates clean, ready-to-paste pawn code.


Getting Started

Requirements: Node.js 18 or higher

git clone https://github.com/San-Andreas-Online/web-textdraw-designer
cd web-textdraw-designer
cd app
npm install
npm run dev

Open http://localhost:5173 in your browser and editing.


Features

Canvas & Editing

  • Snap-to-grid with configurable grid size
  • Drag selection for selecting multiple elements at once
  • Resize any element with the corner handle
  • Nudge selected elements with arrow keys
  • Widescreen mode toggle for 16:9 layouts

Element Types

All standard SA-MP TextDraw types are supported:

  • Label
  • Button
  • Box
  • Sprite

Layers & Organization

  • Layer panel showing all elements in order
  • Drag-and-drop layer reordering
  • Toggle visibility and lock per element
  • Bring to front / send to back

Export & Import

  • Export to Pawn code. Global TD (TextDraw) or Player TD (PlayerTextDraw)
  • Import from existing JSON projects or pawn code textdraws

Reference Images

  • Upload images as a overlay on the canvas
  • Drag, resize, and adjust opacity per image
  • Lock reference images so they don't get in the way while editing
  • Useful for tracing mockups or screenshots

Tech Stack


License

MIT

About

Web tool to import, design and export SA-MP/open.mp Textdraws

Resources

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages