getMoonSize | Multi Theft Auto: Wiki Skip to content

getMoonSize

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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

getMoonSize ( )

Code Examples

server

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