Squirrel/Client/Functions/Messages/ClearMessages
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "{{Squirrel/Title|ClearMessages}} This function clears all the GTA messages currently on screen. This can be used only for you. == Syntax == ''ClearMessages'' has an paramete...") |
(→Related Functions) |
||
(2 intermediate revisions by one user not shown) | |||
Line 17: | Line 17: | ||
function onClientCommand ( szCommand, szParams ) | function onClientCommand ( szCommand, szParams ) | ||
{ | { | ||
− | if ( | + | if ( szCommand== "clearmsg" ) |
{ | { | ||
ClearMessages ( ); | ClearMessages ( ); | ||
Line 30: | Line 30: | ||
=== Notes === | === Notes === | ||
− | The call [[Squirrel/ | + | The call [[Squirrel/Client/Events/Player/onClientCommand|onClientCommand]] was used in in this example. More info about this in the corresponding page. |
== Related Functions == | == Related Functions == | ||
− | {{Squirrel/ | + | {{Squirrel/Client/Functions/Messages}} |
Latest revision as of 22:21, 16 August 2015
This function clears all the GTA messages currently on screen. This can be used only for you.
[edit] Syntax
ClearMessages has an parameter.
bool ClearMessages()
[edit] Arguments
- None
[edit] Example
function onClientCommand ( szCommand, szParams ) { if ( szCommand== "clearmsg" ) { ClearMessages ( ); } return 1; }
This command will clear all GTA messages for the command user.
[edit] Notes
The call onClientCommand was used in in this example. More info about this in the corresponding page.
[edit] Related Functions
- BigMessage
- ClearMessages
- ConsoleMessage
- Message
- PagerMessage
- SmallMessage