PagerMessage

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events
LU This function works in Liberty Unleashed only.

This function shows a GTA pager message to the client.

Syntax

  1. bool PagerMessage( string text, int speed, int something2, int sound )

On the speed setting, the lower the number, the faster the message scrolls across, 140 is a good setting.

For sound, the options available are 0, 1 and 2.

Arguments

  • text - This is the message to be sent via the pager
  • speed - This is how quick the message is scrolled across.
  • something2 - Unknown
  • sound - This is what ring tone the pager plays.

Example

  1.  
  2.  
  3. function onClientCommand( szCommand, szText )
  4. {
  5. if ( szCommand == "pager" )
  6. {
  7. if ( szText ) PagerMessage( pPlayer, szText, 140, 1, 2 );
  8. }
  9. return 1;
  10. }
  11.  
  12.  

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