PlayFrontEndTrack

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function plays an internal GTA mission sound.

Syntax

  1. bool PlayFrontEndTrack( player plr, int sound )

Arguments

  • plr - The player to play the sound for
  • sound - The ID of the sound to play

Example

Explanation for the example

  1.  
  2. function onPlayerCommand( player, cmd )
  3. {
  4. if ( cmd == "playtrack" )
  5. {
  6. PlayFrontEndTrack( player, 350 );
  7. }
  8. return 1;
  9. }
  10.  

Notes

-- The call onPlayerCommand was used in in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox