Squirrel/Server/Functions/Sounds/PlayFrontEndSound

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
{{Squirrel/Title|PlayGameSound}}
+
{{Squirrel/Title|PlayFrontEndSound}}
 
This function plays an internal GTA sound.
 
This function plays an internal GTA sound.
  
 
== Syntax ==
 
== Syntax ==
  
<code>bool PlayGameSound( player plr, int sound )</code>
+
<code>bool PlayFrontEndSound( player plr, int sound )</code>
<code>bool PlayGameSound( player plr, int sound, Vector pos )</code>
+
<code>bool PlayGameSound( player plr, int sound, float x, float y, float z )</code>
+
  
== Arguments ==
+
=== Arguments ===
  
 
* '''plr''' - The player to play the sound for
 
* '''plr''' - The player to play the sound for
* '''sound''' - The ID of the sound to player
+
* '''sound''' - The ID of the sound to play
* '''pos''' - The position of where the sound should originate from
+
  
 
== Example ==
 
== Example ==

Latest revision as of 23:37, 27 October 2010

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

This function plays an internal GTA sound.

[edit] Syntax

  1. bool PlayFrontEndSound( player plr, int sound )

[edit] Arguments

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

[edit] Example

This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o

Explanation for the example

  1.  
  2. -- Todo
  3.  

[edit] Notes

-- List of used functions and other notes here.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox