SetMoonSize

From Multi Theft Auto: Wiki
Revision as of 00:14, 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 sets the moon size. Using this function server-side will overwrite the value that was pre...")
(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 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

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

Example

Click to collapse [-]
Server

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

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

See Also