ResetSkyGradient: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:


==Example==
==Example==
<section name="Server and Client" class="both" show="true">
This example reset the sky gradient.
This example reset the sky gradient.
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
Line 21: Line 20:
)
)
</syntaxhighlight>
</syntaxhighlight>
</section>


==See Also==
==See Also==
{{World functions}}
{{World functions}}
[[ru:ResetSkyGradient]]

Latest revision as of 18:44, 11 August 2010

This function allows restoring of a changed sky gradient as a result of setSkyGradient.

Syntax

bool resetSkyGradient()

Returns

Returns true if sky color was reset correctly, false otherwise.

Example

This example reset the sky gradient.

addCommandHandler("resetsky",
  function()
    resetSkyGradient()
  end
)

See Also