<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eznemgergo</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Eznemgergo"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Eznemgergo"/>
	<updated>2026-04-28T00:16:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ShowCursor&amp;diff=82008</id>
		<title>ShowCursor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ShowCursor&amp;diff=82008"/>
		<updated>2025-05-21T18:55:35Z</updated>

		<summary type="html">&lt;p&gt;Eznemgergo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to show or hide a [[player]]'s cursor.&lt;br /&gt;
{{Note|Regardless of the cursor state you set using this function, the cursor will always be visible while the menu, the chatbox input line or the console are active, or if another resource has called this function.}}&lt;br /&gt;
{{Note| Be aware of that if showCursor enbaled by a resource you can't disabled it from a different ressource showCursor(false) will not works, in order to make it works, disable it from the original resource that enabled it or use export }}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool showCursor ( player thePlayer, bool show, [ bool toggleControls = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The [[player]] you want to show or hide the cursor of.&lt;br /&gt;
*'''show:''' A boolean value determining whether to show (''true'') or hide (''false'') the cursor.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''toggleControls:''' A boolean value determining whether to disable controls whilst the cursor is showing.  ''true'' implies controls are disabled, ''false'' implies controls remain enabled.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool showCursor ( bool show, [ bool toggleControls = true ]  )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''show:''' A boolean value determining whether to show (''true'') or hide (''false'') the cursor.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''toggleControls:''' A boolean value determining whether to disable controls whilst the cursor is showing.  ''true'' implies controls are disabled, ''false'' implies controls remain enabled.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player's cursor was shown or hidden successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example shows the cursor for a player named &amp;quot;Dave&amp;quot;, then outputs a message if it was shown successfully.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local thePlayer = getPlayerFromName ( &amp;quot;Noffy&amp;quot; )              -- get the player named Dave&lt;br /&gt;
if thePlayer then                                           -- if we got him&lt;br /&gt;
    showCursor ( thePlayer, true )                          -- make his cursor show&lt;br /&gt;
    if isCursorShowing ( thePlayer ) then                   -- did it show?&lt;br /&gt;
        outputChatBox ( &amp;quot;Cursor is now showing for Dave.&amp;quot; ) -- print a message to the chat box&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example shows the cursor all the time&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
showCursor ( true ) -- Shows cursor&lt;br /&gt;
showCursor ( false ) -- Doesnt Show Cursor&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:showCursor]]&lt;/div&gt;</summary>
		<author><name>Eznemgergo</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundEffectParameter&amp;diff=81843</id>
		<title>SetSoundEffectParameter</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundEffectParameter&amp;diff=81843"/>
		<updated>2025-03-08T14:25:49Z</updated>

		<summary type="html">&lt;p&gt;Eznemgergo: Clarified using method&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20914|This function sets the parameter of a [[sound]] effect.}}&lt;br /&gt;
{{Note|Using this function on a player voice sound element is not supported at this time.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundEffectParameter ( element sound, string effectName, string effectParam, var paramValue )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[sound]]:setEffectParameter}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''sound:''' The [[sound]] element.&lt;br /&gt;
*'''effectName:''' The name of the effect whose parameter you want to change:&lt;br /&gt;
{{Sound_Effects}}&lt;br /&gt;
*'''effectParam:''' The parameter [[#Effects Parameters|name]].&lt;br /&gt;
*'''paramValue:''' The parameter [[#Effects Parameters|value]].&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if effect have been set successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
===Effects Parameters===&lt;br /&gt;
{{Sound_Effects_Parameters}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
NOTE: This function will only work if it's executed within a timer.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--An example via a timer&lt;br /&gt;
local mySound = playSound(&amp;quot;discoSound.mp3&amp;quot;, 0, 0, 10)&lt;br /&gt;
setSoundEffectEnabled(mySound, &amp;quot;echo&amp;quot;, true)&lt;br /&gt;
&lt;br /&gt;
setTimer(function()&lt;br /&gt;
    setSoundEffectParameter(mySound, &amp;quot;echo&amp;quot;, &amp;quot;wetDryMix&amp;quot;, 80)&lt;br /&gt;
end, 1, 1)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local sound = playSound3D (&amp;quot;music.mp3&amp;quot;, 0, 0, 10)&lt;br /&gt;
&lt;br /&gt;
setSoundEffectEnabled (sound, &amp;quot;echo&amp;quot;, true)&lt;br /&gt;
setSoundEffectParameter (sound, &amp;quot;echo&amp;quot;, &amp;quot;wetDryMix&amp;quot;, 80)&lt;br /&gt;
setSoundEffectParameter (sound, &amp;quot;echo&amp;quot;, &amp;quot;feedback&amp;quot;, 30)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;/div&gt;</summary>
		<author><name>Eznemgergo</name></author>
	</entry>
</feed>