Scripting/Squirrel/Functions/Textdraw.ShowForPlayer
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
This function will display the textdraw on the entered player's screen.
Syntax
Textdraw.ShowForPlayer( player )
Arguments
- Player player - The player you want to display the textdraw to.
Example
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "textforplayer" )
{
local Textdraw = CreateTextdraw( "Text", x, y, Color);
Textdraw.ShowForPlayer(player);
}
}
Notes
Call onPlayerCommand and CreateTextdraw were used in this example. More info about them in the corresponding pages.