setRadarAreaColor | Multi Theft Auto: Wiki Skip to content

setRadarAreaColor

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.


Sets the color of an existing radar area.

Syntax

setRadarAreaColor ( )

Code Examples

server

This example creates a radar area and changes its color right away:

someArea = createRadarArea ( 1024, 1024, 75, 100, 0, 0, 0, 255 ) -- create a black radar area
local flag = setRadarAreaColor ( someArea, 255, 85, 85, 170 ) -- change its color
if ( flag ) then -- if the function returned true...
outputChatBox ( "Color set successfully!" )
else -- if the function returned false...
outputChatBox ( "Failed to set color." )
end

See Also