getMoonSize | Multi Theft Auto: Wiki Skip to content

getMoonSize

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 returns the moon size.

Note

The function will return false server-side if moon size has not been set before the function is called.

Syntax

int getMoonSize ( )

Returns

  • int: value

Returns a integer being the moon size that is currently set, depending on which side it is used.

Code Examples

shared

This example will tell the moon size to everyone when the resource is started.

function handleResourceStart( )
outputChatBox( string.format( "Server's moon size is set to %d", getMoonSize() ) )
end
addEventHandler( "onResourceStart", resourceRoot, handleResourceStart )

See Also

World Functions