setRadarAreaFlashing | Multi Theft Auto: Wiki Skip to content

setRadarAreaFlashing

Client-side
Server-side
Shared

Pair: isRadarAreaFlashing

Manual Review Required

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


This function makes an existing radar area flash in transparency.

OOP Syntax Help! I don't understand this!

  • Method:radararea:setFlashing(...)
  • Variable: .flashing

Syntax

bool setRadarAreaFlashing ( radararea theRadarArea, bool flash )
Required Arguments
  • theRadarArea: the radararea element we want to change flashing state of.
  • flash: a bool indicating whether the radar area should flash ( true to flash, false to not flash).

Returns

  • bool: value

Returns true if the new flash state was successfully set, false if the radar area doesn't exist or invalid arguments were passed.

Code Examples

shared

Example 1:This example checks to see whether an existing radar area (someArea) is flashing, and forces it to flash if it isn't:

local isFlashing = isRadarAreaFlashing ( someArea )
if isFlashing then -- if the area is already flashing...
outputChatBox ( "The radar area is already flashing." )
else -- if it isn't...
setRadarAreaFlashing ( someArea, true ) -- make the area flash
end