Garry's Mod Wiki

util.GetSunInfo

  table util.GetSunInfo()

Description

Gets information about the sun position and obstruction or nil if there is no sun.

Returns

1 table
The sun info. See SunInfo structure