Graphics::drawText
Syntax
``` mp.game.graphics.drawText(text, [x, y [, z]], { font, color, scale, outline, centre }); ```
Required Arguments
- text: String: structured text to show (utilizes [Fonts and Colors](/fonts-and-colors) and [Control Characters](https://en.wikipedia.org/wiki/Control_character))
- x: Float: X position in the screen (0.0 to 1.0)
- y: Float: Y position in the screen (0.0 to 1.0)
- z: Float: Include Z parameter when rendering to a 3D space (change X and Y to world co-ordinates)
- font: Int: font id
- color: Array: Color of the text plus alpha
- scale: Array ([x, y]): scale of the text (1.0 is a good value)
- outline: Bool: Text has borders or not
Return value
Unknown
Example
Fonts
<span style="font-size:130%; line-height: 1.31em;">ChaletLondon - ID: 0</span>
Image:120px-chalet-london-nineteen-seventy-upper.png Image:120px-chalet-london-nineteen-seventy-lower.png Image:120px-chalet-london-nineteen-seventy-character.png
<span style="font-size:130%; line-height: 1.31em;">HouseScript - ID: 1</span>
Image:120px-sign-painter-house-script-upper.png Image:120px-sign-painter-house-script-lower.png Image:120px-sign-painter-house-script-character.png
<span style="font-size:130%; line-height: 1.31em;">Monospace - ID: 2</span>
Image:120px-Excalibur_Monospace-upper.png Image:120px-Excalibur_Monospace-lower.png Image:120px-Excalibur_Monospace-character.png
<span style="font-size:130%; line-height: 1.31em;">CharletComprimeColonge - ID: 4</span>
Image:120px-chalet-comprime-cologne-seventy-upper.png Image:120px-chalet-comprime-cologne-seventy-lower.png Image:120px-chalet-comprime-cologne-seventy-character.png
<span style="font-size:130%; line-height: 1.31em;">Pricedown - ID: 7</span>
Image:120px-Pricedown-upper.png Image:120px-Pricedown-lower.png Image:120px-Pricedown-character.png