Scripting/Squirrel/Functions/Textdraw.ShowForPlayer: Difference between revisions
Jump to navigation
Jump to search
![Caution icon Caution icon](http://static.vc-mp.org/caution-icon.webp)
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will display the textdraw on the entered player's screen. == Syntax == <pre>Textdraw.ShowForPlayer( player )</pre> == Arguments == * ''Player'' '''player'''...") |
(No difference)
|
Latest revision as of 11:07, 12 March 2016
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.