<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/User_talk:Lil_Toady%5C2?action=history&amp;feed=atom</id>
	<title>User talk:Lil Toady\2 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/User_talk:Lil_Toady%5C2?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Lil_Toady%5C2&amp;action=history"/>
	<updated>2026-04-22T20:37:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User_talk:Lil_Toady%5C2&amp;diff=9306&amp;oldid=prev</id>
		<title>Lil Toady at 14:39, 29 July 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User_talk:Lil_Toady%5C2&amp;diff=9306&amp;oldid=prev"/>
		<updated>2007-07-29T14:39:08Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function plays a frontend sound for the specified player.&lt;br /&gt;
==Server==&lt;br /&gt;
===Usage===&lt;br /&gt;
Both server-side and client-side. &amp;quot;thePlayer&amp;quot; argument isn't used in client-side version of this function.&lt;br /&gt;
&lt;br /&gt;
===Syntax===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( player thePlayer, int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Required Arguments==== &lt;br /&gt;
*'''thePlayer:''' The [[player]] you want the sound to play for.&lt;br /&gt;
*'''sound:''' A whole [[int]] specifying the sound id to play. Valid values are:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&lt;br /&gt;
====Returns====&lt;br /&gt;
Returns ''true'' if the sound was successfully played , ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
This example plays a sound when a player spawns&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn ( spawnpoint, team ) --when a player spawns&lt;br /&gt;
  playSoundFrontEnd ( source, 16 ) --play a sound for him&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getElementRoot(), onPlayerSpawn ) --add an event for onPlayerSpawn&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Client==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool playSoundFrontEnd ( int sound )   &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Required Arguments==== &lt;br /&gt;
*'''sound:''' A whole [[int]] specifying the sound id to play. Valid values are:&lt;br /&gt;
{{Sounds}}&lt;br /&gt;
&lt;br /&gt;
====Returns====&lt;br /&gt;
Returns ''true'' if the sound was successfully played , ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
This example plays a sound when a player spawns&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn ( spawnpoint, team ) --when a player spawns&lt;br /&gt;
  playSoundFrontEnd ( 16 ) --play a sound for him&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerSpawn&amp;quot;, getElementRoot(), onPlayerSpawn ) --add an event for onPlayerSpawn&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lil Toady</name></author>
	</entry>
</feed>