Squirrel/Client/Functions/Messages/ClearMessages
From Liberty Unleashed Wiki
(Difference between revisions)
(→Notes) |
(→Example) |
||
Line 17: | Line 17: | ||
function onClientCommand ( szCommand, szParams ) | function onClientCommand ( szCommand, szParams ) | ||
{ | { | ||
− | if ( | + | if ( szCommand== "clearmsg" ) |
{ | { | ||
ClearMessages ( ); | ClearMessages ( ); |
Revision as of 12:49, 12 November 2013
This function clears all the GTA messages currently on screen. This can be used only for you.
Syntax
ClearMessages has an parameter.
bool ClearMessages()
Arguments
- None
Example
function onClientCommand ( szCommand, szParams ) { if ( szCommand== "clearmsg" ) { ClearMessages ( ); } return 1; }
This command will clear all GTA messages for the command user.
Notes
The call onClientCommand was used in in this example. More info about this in the corresponding page.