Squirrel/Server/Functions/Sounds/PlayFrontEndSound

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with '{{Squirrel/Title|PlayGameSound}} This function players an internal GTA sound. == Syntax == <code>sound PlayGameSound( player plr, int sound )</code> <code>sound PlayGameSound( …')
 
Line 4: Line 4:
 
== Syntax ==
 
== Syntax ==
  
<code>sound PlayGameSound( player plr, int sound )</code>
+
<code>bool PlayGameSound( player plr, int sound )</code>
<code>sound PlayGameSound( player plr, int sound, Vector pos )</code>
+
<code>bool PlayGameSound( player plr, int sound, Vector pos )</code>
<code>sound PlayGameSound( player plr, int sound, float x, float y, float z )</code>
+
<code>bool PlayGameSound( player plr, int sound, float x, float y, float z )</code>
  
 
== Arguments ==
 
== Arguments ==

Revision as of 14:38, 15 October 2010

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

This function players an internal GTA sound.

Syntax

  1. bool PlayGameSound( player plr, int sound )
  1. bool PlayGameSound( player plr, int sound, Vector pos )
  1. bool PlayGameSound( player plr, int sound, float x, float y, float z )

Arguments

  • plr - The player to play the sound for
  • sound - The ID of the sound to player
  • pos - The position of where the sound should originate from

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.  

Notes

-- List of used functions and other notes here.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox