getSkyGradient | Multi Theft Auto: Wiki Skip to content

getSkyGradient

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function will return the current sky color.

Syntax

int,​ int,​ int,​ int,​ int,​ int getSkyGradient ( )

Returns

  • int: value1
  • int: value2
  • int: value3
  • int: value4
  • int: value5
  • int: value6

Returns 6 ints , of which the first 3 represent the sky's "top" color, (in RGB) and the last 3 represent the bottom colors.

Code Examples

shared
function check()
local r1, g1, b1, r2, g2, b2 = getSkyGradient()
outputChatBox("Sky gradient colors are R: "..r1.." G: "..g1.." B: "..b1.." and R: "..r2.." G: "..g2.." B: "..b2)
end
addCommandHandler("skygradient", check)

See Also

World Functions