Squirrel/Client/Functions/Messages/ClearMessages

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
(Related Functions)
 
Line 34: Line 34:
 
== Related Functions ==
 
== Related Functions ==
  
{{Squirrel/Server/Functions/Messages}}
+
{{Squirrel/Client/Functions/Messages}}

Latest revision as of 22:21, 16 August 2015

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.

[edit] Syntax

ClearMessages has an parameter.

  1. bool ClearMessages()

[edit] Arguments

  • None

[edit] Example

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

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

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox