ResetSunColor

From Multi Theft Auto: Wiki
Revision as of 19:26, 14 March 2011 by Arran Fortuna (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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