SetMarkerColor

From Multi Theft Auto: Wiki
Revision as of 21:45, 13 August 2006 by EAi (talk | contribs)
Jump to navigation Jump to search

This function sets the color of the specified marker by modifying the values for red, green and blue.

Syntax

bool setMarkerColor ( marker marker, int r, int g, int b, int a )

Required Arguments

  • marker: The marker that you wish to set the color of.
  • r: The amount of red in the final color (0 to 255).
  • g: The amount of green in the final color (0 to 255).
  • b: The amount of blue in the final color (0 to 255).
  • a: The amount of alpha in the final color (0 to 255).

Example

newmarker = createMarker ( 1000, 1000, 1000, 1, 255, 0, 0, 255 ) --Create red marker
setMarkerColor ( newmarker, 0, 255, 0, 255 ) --Turn red marker into a green one

See Also