<?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=SaintsTalles</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=SaintsTalles"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/SaintsTalles"/>
	<updated>2026-05-15T08:54:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraGoggleEffect&amp;diff=78518</id>
		<title>SetCameraGoggleEffect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraGoggleEffect&amp;diff=78518"/>
		<updated>2023-11-02T15:24:55Z</updated>

		<summary type="html">&lt;p&gt;SaintsTalles: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to set the camera's current goggle effect. This means you can activate nightvision or infrared effects by script&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 setCameraGoggleEffect ( string goggleEffect [, bool noiseEnabled = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||Camera.setGoggleEffect|goggleEffect|getCameraGoggleEffect}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''goggleEffect:''' the goggle effect you wish to set&lt;br /&gt;
{{Camera goggle modes}}&lt;br /&gt;
{{New feature/item|3.0156|1.5.5|13999|&lt;br /&gt;
*'''noiseEnabled:''' whether or not there should be a fuzzy noise effect&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* ''true'' if the effect was set correctly.&lt;br /&gt;
* ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function nightvision()&lt;br /&gt;
   local effect = (getCameraGoggleEffect() == &amp;quot;normal&amp;quot;) and &amp;quot;nightvision&amp;quot; or &amp;quot;normal&amp;quot;&lt;br /&gt;
   setCameraGoggleEffect(effect)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nightvision&amp;quot;, nightvision)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.5.5-9.13999|Added noiseEnabled argument}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:setCameraGoggleEffect]]&lt;br /&gt;
[[RO:setCameraGoggleEffect]]&lt;/div&gt;</summary>
		<author><name>SaintsTalles</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCameraGoggleEffect&amp;diff=78517</id>
		<title>SetCameraGoggleEffect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCameraGoggleEffect&amp;diff=78517"/>
		<updated>2023-11-02T15:24:36Z</updated>

		<summary type="html">&lt;p&gt;SaintsTalles: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to set the camera's current goggle effect. This means you can activate nightvision or infrared effects by script&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 setCameraGoggleEffect ( string goggleEffect [, bool noiseEnabled = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||Camera.setGoggleEffect|goggleEffect|getCameraGoggleEffect}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''goggleEffect''': the goggle effect you wish to set&lt;br /&gt;
{{Camera goggle modes}}&lt;br /&gt;
{{New feature/item|3.0156|1.5.5|13999|&lt;br /&gt;
*'''noiseEnabled:''' whether or not there should be a fuzzy noise effect&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* ''true'' if the effect was set correctly.&lt;br /&gt;
* ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function nightvision()&lt;br /&gt;
   local effect = (getCameraGoggleEffect() == &amp;quot;normal&amp;quot;) and &amp;quot;nightvision&amp;quot; or &amp;quot;normal&amp;quot;&lt;br /&gt;
   setCameraGoggleEffect(effect)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nightvision&amp;quot;, nightvision)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.5.5-9.13999|Added noiseEnabled argument}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client camera functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:setCameraGoggleEffect]]&lt;br /&gt;
[[RO:setCameraGoggleEffect]]&lt;/div&gt;</summary>
		<author><name>SaintsTalles</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundEffectParameter&amp;diff=78513</id>
		<title>SetSoundEffectParameter</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundEffectParameter&amp;diff=78513"/>
		<updated>2023-11-01T22:45:55Z</updated>

		<summary type="html">&lt;p&gt;SaintsTalles: /* Required Arguments */&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;
&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;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20914|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;/div&gt;</summary>
		<author><name>SaintsTalles</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ProcessLineAgainstMesh&amp;diff=78504</id>
		<title>ProcessLineAgainstMesh</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ProcessLineAgainstMesh&amp;diff=78504"/>
		<updated>2023-10-31T16:52:10Z</updated>

		<summary type="html">&lt;p&gt;SaintsTalles: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22219|Does a raycast against an element's renderable mesh model directly}}&lt;br /&gt;
Does a raycast against an element's renderable mesh model [not the collision model!].&lt;br /&gt;
The same functionality is already present in [[processLineOfSight]], but the latter is a little buggy due to the fact that the collision model is always simplified, and not exactly the same as the mesh, which leads to situations where no hit is detected, even though the visible mesh is hittable [or vice versa].&lt;br /&gt;
Also, when one is interested in a specific element the overhead is a lot smaller [as we can skip all the collision detection done by the before-mentioned function].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&lt;br /&gt;
Single line for convenience.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool, float, float, string, string, float, float, float processLineAgainstMesh(element toTest, float startX, float startY, float startZ, float endX, float endY, float endZ)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Return values labelled for ease of reference.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool               -- hit &lt;br /&gt;
float float        -- texU, texV&lt;br /&gt;
string             -- textureName&lt;br /&gt;
string             -- frameName&lt;br /&gt;
float float float  -- worldX, worldY, worldZ&lt;br /&gt;
                  processLineAgainstMesh(element toTest, &lt;br /&gt;
                                         float startX, float startY, float startZ, &lt;br /&gt;
                                         float endX, float endY, float endZ)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''toProcess:''' The element to process the line against&lt;br /&gt;
*'''startX, startY, startZ:''' The start [origin] of the line&lt;br /&gt;
*'''endX, endY, endZ:''' The end of the line&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
*'''hit:''' ''true'' if there is a collision with the given element's mesh, ''false'' otherwise [in which case all other values are nil]&lt;br /&gt;
*'''texU, texV:''' the U, V coordinates on the hit geometry's texture&lt;br /&gt;
*'''textureName:''' name of the hit geometry's texture&lt;br /&gt;
*'''frameName:''' hit frame's name&lt;br /&gt;
*'''worldX, worldY, worldZ:''' collision position in world space&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.6.0-9.22173|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client world functions}}&lt;/div&gt;</summary>
		<author><name>SaintsTalles</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=StopObject&amp;diff=78500</id>
		<title>StopObject</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=StopObject&amp;diff=78500"/>
		<updated>2023-10-31T12:08:10Z</updated>

		<summary type="html">&lt;p&gt;SaintsTalles: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This will allow you to stop an object that is currently moving.&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 stopObject ( object theObject )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[object]]:stop||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theObject:''' the [[object]] whose movement you wish to stop&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* ''true'' if successful.&lt;br /&gt;
* ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This will allow you to toggle the random movement of a staircase object model using a ''randomObjectMovement'' function and stop it immediately with the stopObject command.  This is achieved by using a &amp;quot;toggleobjectmove&amp;quot; command with a &amp;quot;on&amp;quot; or &amp;quot;off&amp;quot; parameter.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function objectMoveControl ( thePlayer, commandName, state )&lt;br /&gt;
    -- On &amp;quot;toggleobjectmove&amp;quot; in console, activate this command, which also asks the player to define the value for the varible 'state'. &lt;br /&gt;
    if state == &amp;quot;on&amp;quot; then&lt;br /&gt;
        outputChatBox ( &amp;quot;Moving object randomly&amp;quot; )&lt;br /&gt;
        mytimer = setTimer ( randomObjectMovement, 2250, 0 )&lt;br /&gt;
        -- if the player types &amp;quot;on&amp;quot; for the state variable, turn on the timer, which triggers a function&lt;br /&gt;
        -- called randomObjectMovement that moves the object whenever it is called (not included for&lt;br /&gt;
        -- this example). The timer runs every 2 1/4 seconds for 0 times, which means it runs infinitely.&lt;br /&gt;
    elseif state == &amp;quot;off&amp;quot; then&lt;br /&gt;
        outputChatBox ( &amp;quot;Stopping object movement&amp;quot; )&lt;br /&gt;
        killTimer ( mytimer )&lt;br /&gt;
        stopObject ( myobject )&lt;br /&gt;
        -- if the player typed &amp;quot;off&amp;quot; for state, stop the object movement immediately and kill the&lt;br /&gt;
        -- randomObjectMovement timer&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox ( &amp;quot;must define object state as 'on' or 'off'&amp;quot; )&lt;br /&gt;
        -- if the player typed something besides &amp;quot;on&amp;quot; or &amp;quot;off&amp;quot; for state, do nothing&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;toggleobjectmove&amp;quot;, objectMoveControl )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Object_functions}}&lt;/div&gt;</summary>
		<author><name>SaintsTalles</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=StopObject&amp;diff=78499</id>
		<title>StopObject</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=StopObject&amp;diff=78499"/>
		<updated>2023-10-31T12:06:48Z</updated>

		<summary type="html">&lt;p&gt;SaintsTalles: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This will allow you to stop an object that is currently moving.&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 stopObject ( object theObject )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[object]]:stop||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theobject:''' the [[object]] whose movement you wish to stop&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* ''true'' if successful.&lt;br /&gt;
* ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This will allow you to toggle the random movement of a staircase object model using a ''randomObjectMovement'' function and stop it immediately with the stopObject command.  This is achieved by using a &amp;quot;toggleobjectmove&amp;quot; command with a &amp;quot;on&amp;quot; or &amp;quot;off&amp;quot; parameter.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function objectMoveControl ( thePlayer, commandName, state )&lt;br /&gt;
    -- On &amp;quot;toggleobjectmove&amp;quot; in console, activate this command, which also asks the player to define the value for the varible 'state'. &lt;br /&gt;
    if state == &amp;quot;on&amp;quot; then&lt;br /&gt;
        outputChatBox ( &amp;quot;Moving object randomly&amp;quot; )&lt;br /&gt;
        mytimer = setTimer ( randomObjectMovement, 2250, 0 )&lt;br /&gt;
        -- if the player types &amp;quot;on&amp;quot; for the state variable, turn on the timer, which triggers a function&lt;br /&gt;
        -- called randomObjectMovement that moves the object whenever it is called (not included for&lt;br /&gt;
        -- this example). The timer runs every 2 1/4 seconds for 0 times, which means it runs infinitely.&lt;br /&gt;
    elseif state == &amp;quot;off&amp;quot; then&lt;br /&gt;
        outputChatBox ( &amp;quot;Stopping object movement&amp;quot; )&lt;br /&gt;
        killTimer ( mytimer )&lt;br /&gt;
        stopObject ( myobject )&lt;br /&gt;
        -- if the player typed &amp;quot;off&amp;quot; for state, stop the object movement immediately and kill the&lt;br /&gt;
        -- randomObjectMovement timer&lt;br /&gt;
    else&lt;br /&gt;
        outputChatBox ( &amp;quot;must define object state as 'on' or 'off'&amp;quot; )&lt;br /&gt;
        -- if the player typed something besides &amp;quot;on&amp;quot; or &amp;quot;off&amp;quot; for state, do nothing&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;toggleobjectmove&amp;quot;, objectMoveControl )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Object_functions}}&lt;/div&gt;</summary>
		<author><name>SaintsTalles</name></author>
	</entry>
</feed>