SetMarkerTargetArrowProperties: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(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:...")
 
mNo edit summary
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
This function changes the color and size of the checkpoint marker's target arrow.
{{New feature/item|9.0161|1.6.0|22620|This function changes the color and size of the checkpoint marker's target arrow.}}


==Syntax==
==Syntax==

Latest revision as of 18:48, 15 July 2024

ADDED/UPDATED IN VERSION 1.6.0 r22620:
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