TextDraw editor
Lay out textdraws on the game’s 640 x 448 screen, drawn with its own fonts and sprites, without a server or the game. Paste code from any script to edit it, then copy the Pawn code back.
Drag a textdraw to move it and the handles to size its box. Arrow keys nudge the chosen one (Shift for 10), Delete removes it and Ctrl+D copies it.
640 × 448
TextDraws
6 textdraws / 2048Made once in OnGameModeInit and shown to whoever needs them. The server has 2,048 between all players.
The game draws them in this order, so lower ones cover higher ones.
Properties
Choose a textdraw on the screen or in the list.
SA-MP 0.3.7’s names: they compile with SA-MP’s includes and with open.mp’s, which warn about some of them.
Paste it into your gamemode (merge it into your own OnGameModeInit if you have one), then call ShowHud(playerid).
How the textdraws are drawn
- Letters come from the game’s own fonts.txd and are spaced by the widths in its fonts.dat, so line lengths, wrapping and box sizes come out as in the game.
- The 640 x 448 space is stretched over the whole screen, so on a wide screen everything is wider. Pick a screen size, or use a screenshot to work at its size.
- Outlines, shadows and the edge of a box are whole pixels of the screen, so they look thinner on a large one, as in the game.
- Only the setters that differ from SA-MP’s defaults are written out, and code pasted from Zamaroht’s editor, iTD or any script comes back in under its own variable names.
- Sprites from dictionaries that are not on this site yet are drawn as labelled boxes in the right place and size; the code is the same.
Everything happens in your browser: screenshots and code are never uploaded. The last project is kept in this browser.