ResetSunColor: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Server client function}} This function is used to reset the color of the sun to its normal color. ==Syntax== <syntaxhighlight lang="lua"> bool resetSunColor ( ) </syntaxhighlight> ===Returns...")
 
(No difference)

Latest revision as of 19:26, 14 March 2011

This function is used to reset the color of the sun to its normal color.

Syntax

bool resetSunColor ( )

Returns

Returns true if the color of the sun was reset, false otherwise.

Example

This example lets any player reset the color of the sun like /resetsuncolor

function commandResetSunColor(player, command)
    resetSunColor()
end
addCommandHandler("resetsuncolor", commandResetSunColor)

See Also

Shared