SetMarkerTargetArrowProperties

From Multi Theft Auto: Wiki
Revision as of 18:45, 15 July 2024 by FileEX (talk | contribs) (Created page with "__NOTOC__ {{Server client function}} This function changes the color and size of the checkpoint marker's target arrow. ==Syntax== <syntaxhighlight lang="lua">bool setMarkerTargetArrowProperties(element marker [, int r = 255, int g = 64, int b = 64, int a = 255, float size = markerSize * 0.625 ] )</syntaxhighlight> ===Required Arguments=== *'''theMarker:''' The marker that you wish to set the color of. *'''r:''' The amount of red in the final color (0 to 255). *'''g:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function changes the color and size of the checkpoint marker's target arrow.

Syntax

bool setMarkerTargetArrowProperties(element marker [, int r = 255, int g = 64, int b = 64, int a = 255, float size = markerSize * 0.625 ] )

Required Arguments

  • theMarker: 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).
  • size: Target arrow size.

Example

local newMarker = createMarker ( 0, 0, 2, "checkpoint", 2, 255, 0, 0, 255 )  -- Create a red checkpoint marker
setMarkerTarget(newMarker, 0, 10, 5) -- set target arrow direction

setMarkerTargetArrowProperties(newMarker, 0, 255, 255, 255) -- Set target arrow color to light blue (aqua)

See Also

Shared