GetMoonSize

From Multi Theft Auto: Wiki
Revision as of 00:17, 16 February 2013 by Kenix1 (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} {{New feature/item|4.0132|1.3.1|5063| This function returns the moon size. Using this function server-side will return the server-side value,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.3.1 r5063:

This function returns the moon size. Using this function server-side will return the server-side value, not necessarily the same that is set client-side.

Syntax

int getMoonSize ()

Returns

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

Example

Click to collapse [-]
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