setCoronaReflectionsEnabled | Multi Theft Auto: Wiki Skip to content

setCoronaReflectionsEnabled

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 sets visibility of corona reflections.

Syntax

bool setCoronaReflectionsEnabled ( int enabled )
Required Arguments
  • enabled: 0 : disabled 1 : enabled (will be visible during rain) 2 : force enabled (will be visible even if there is no rain)

Returns

  • bool: value

Returns true if passed arguments are correct, false otherwise.

Code Examples

shared
-- Force enable corona reflections even if there is no rain
setCoronaReflectionsEnabled(2)

Issues

ID Description
2755 Corona reflections do not render on custom placed objects
2750 Corona reflections do not render on all roads

See Also

World Functions