resetSunColor | Multi Theft Auto: Wiki Skip to content

resetSunColor

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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

Syntax

bool resetSunColor ( )

Returns

  • bool: value

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

Code Examples

shared

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

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

See Also

World Functions