setSunSize | Multi Theft Auto: Wiki Skip to content

setSunSize

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 is used to set the size of the sun.

Syntax

setSunSize ( )

Code Examples

server

This example lets any player set the size of the sun like /setsunsize 2

function commandSetSunSize(player, command, size)
local size = tonumber(size)
if (not size) then return end -- They didn't use a number
setSunSize(size)
end
addCommandHandler("setsunsize", commandSetSunSize)

See Also

World Functions