Squirrel/Client/Functions/Messages/ClearMessages

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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...")
 
(Notes)
Line 30: Line 30:
 
=== Notes ===
 
=== Notes ===
  
The call [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] was used in in this example. More info about this in the corresponding page.
+
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/Server/Functions/Messages}}
 
{{Squirrel/Server/Functions/Messages}}

Revision as of 12:49, 12 November 2013

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function clears all the GTA messages currently on screen. This can be used only for you.

Syntax

ClearMessages has an parameter.

  1. bool ClearMessages()

Arguments

  • None

Example

  1.  
  2. function onClientCommand ( szCommand, szParams )
  3. {
  4. if ( cmd == "clearmsg" )
  5. {
  6. ClearMessages ( );
  7. }
  8.  
  9. return 1;
  10. }
  11.  

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.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox