getWaterColor
Client-side
Server-side
Shared
Pair: setWaterColor
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 returns the water color of the GTA world.
Syntax
getWaterColor ( )Code Examples
server
function waterColor () local r,g,b,a = getWaterColor () if ( r and g and b and a ) then -- If color is true -- Output of the value of the water color to the chat outputChatBox ( "The color of water is: "..math.ceil(r)..", "..math.ceil(g)..", "..math.ceil(b)..", "..math.ceil(a).."", r, g, b ) else -- Notify the player if the value of the colors is false outputChatBox ( "Failed to get the color of water!" ) endend -- Add command handler for the functionaddCommandHandler("watercolor", waterColor )