<?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=Dante383</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=Dante383"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Dante383"/>
	<updated>2026-04-29T02:34:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineGetModelVisibleTime&amp;diff=68302</id>
		<title>EngineGetModelVisibleTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineGetModelVisibleTime&amp;diff=68302"/>
		<updated>2021-01-18T01:21:40Z</updated>

		<summary type="html">&lt;p&gt;Dante383: Created page with &amp;quot;__NOTOC__  {{Client function}} {{New feature/item|3.0160|1.5.8|20416|This function returns model visibility time, this is used for example for building lights being shown afte...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0160|1.5.8|20416|This function returns model visibility time, this is used for example for building lights being shown after 23:00.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int, int engineGetModelVisibleTime( modelID )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''modelID''': ID of the model&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''timeOn''', '''timeOff'''&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
Make Los Santos Tower visible only between 10 and 12 AM.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function init()&lt;br /&gt;
	engineSetModelVisibleTime(4550, 10, 12)&lt;br /&gt;
        local timeOn, timeOff = engineGetModelVisibleTime(4550)&lt;br /&gt;
        outputChatBox('Los Santos Tower visible time is now between ' .. timeOn .. ' and ' .. timeOff)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, init)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20416|}}&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Dante383</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineSetModelVisibleTime&amp;diff=68301</id>
		<title>EngineSetModelVisibleTime</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineSetModelVisibleTime&amp;diff=68301"/>
		<updated>2021-01-18T01:16:53Z</updated>

		<summary type="html">&lt;p&gt;Dante383: Created page with &amp;quot;__NOTOC__  {{Client function}} {{New feature/item|3.0160|1.5.8|20416|This function changes model visibility time, this is used for example for building lights being shown afte...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0160|1.5.8|20416|This function changes model visibility time, this is used for example for building lights being shown after 23:00.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool engineSetModelVisibleTime( modelID, timeOn, timeOff )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''modelID''': ID of the model&lt;br /&gt;
*'''timeOn''': value between 23 and 0 that states when the model should appear&lt;br /&gt;
*'''timeOff''': value between 23 and 0 that states when the model should disappear&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns '''true''' if the change was successful, '''false''' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
Make Los Santos Tower visible only between 10 and 12 AM. Please keep in mind that this function does not affect collision - the building is still there, it's just invisible.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function init()&lt;br /&gt;
	engineSetModelVisibleTime(4550, 10, 12)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, init)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.5.8-9.20416|}}&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Dante383</name></author>
	</entry>
</feed>