setMoonSize | Multi Theft Auto: Wiki Skip to content

setMoonSize

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 the moon size. Using this function server-side will overwrite the value that was previously set client-side.

Syntax

bool setMoonSize ( int size )
Required Arguments
  • size: The size, can be 0 or any positive value. Default is 3 .

Returns

  • bool: value

Returns true if the moon size was set correctly, false otherwise.

Code Examples

shared

This example change moon size to looks more realistic for everyone when the resource is started.

function handleResourceStart( )
setMoonSize( 0 )
end
addEventHandler( "onResourceStart", resourceRoot, handleResourceStart )

See Also

World Functions