<?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=Justns</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=Justns"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Justns"/>
	<updated>2026-04-08T19:22:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Justns&amp;diff=80123</id>
		<title>User:Justns</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Justns&amp;diff=80123"/>
		<updated>2024-09-06T10:31:34Z</updated>

		<summary type="html">&lt;p&gt;Justns: Created page with &amp;quot;Discord: justns&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Discord: justns&lt;/div&gt;</summary>
		<author><name>Justns</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsTimerPaused&amp;diff=80122</id>
		<title>IsTimerPaused</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsTimerPaused&amp;diff=80122"/>
		<updated>2024-09-06T10:29:21Z</updated>

		<summary type="html">&lt;p&gt;Justns: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22701| &lt;br /&gt;
This function allows you to check whether a timer is paused.&lt;br /&gt;
}}&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 isTimerPaused ( timer theTimer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|||paused}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theTimer:''' The [[timer]] you wish to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the timer is currently paused, ''false'' if not or if no such timer existed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
This example pauses all currently running timers and resumes all currently paused timers from this resource.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get a table of all current timers from this resource&lt;br /&gt;
local timers = getTimers ( )&lt;br /&gt;
-- Loop through the table of timers&lt;br /&gt;
for timerIndex, timerValue in ipairs( timers ) do&lt;br /&gt;
    -- check if each timer is currently paused&lt;br /&gt;
    local isPaused = isTimerPaused( timerValue )&lt;br /&gt;
    -- pause or resume each timer based on its current state&lt;br /&gt;
    setTimerPaused ( timerValue, not isPaused )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>Justns</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetTimerPaused&amp;diff=80121</id>
		<title>SetTimerPaused</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetTimerPaused&amp;diff=80121"/>
		<updated>2024-09-06T10:26:32Z</updated>

		<summary type="html">&lt;p&gt;Justns: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22701| &lt;br /&gt;
This function is used to either pause or resume a timer.&lt;br /&gt;
}}&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 setTimerPaused ( timer theTimer, bool paused )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|||paused}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theTimer:''' The [[timer]] you wish to pause or resume.&lt;br /&gt;
*'''paused:''' a [[boolean]] value representing whether the timer should be paused or not. To pause the timer, use ''true''.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the timer was successfully paused or resumed, ''false'' if no such timer existed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&lt;br /&gt;
This example pauses all current timers from this resource.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Get a table of all current timers from this resource&lt;br /&gt;
local timers = getTimers ( )&lt;br /&gt;
-- Loop through the table of timers&lt;br /&gt;
for timerIndex, timerValue in ipairs( timers ) do&lt;br /&gt;
    -- pause each timer&lt;br /&gt;
    setTimerPaused ( timerValue, true )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Utility functions}}&lt;/div&gt;</summary>
		<author><name>Justns</name></author>
	</entry>
</feed>