getRadarAreaColor
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 can be used to retrieve the current color of a radar area.
Syntax
getRadarAreaColor ( )Code Examples
server
This example checks the color of a radararea defined as 'area' and announces if it is Ballas or Grove Street territory.
local r,g,b,a = getRadarAreaColor ( area ) -- get the color of 'area' and store it in 'r', 'g', 'b' and 'a'if r == 0 and g == 255 and b == 0 then -- if the radar area is fully green outputChatBox ( "This is Grove Street turf!" ) -- announce it as grove street areaelseif r == 255 and g == 0 and b == 255 then -- if it is purple however outputChatBox ( "This is Ballas turf!" ) -- announce it as ballas areaend