getMarkerTargetArrowProperties | Multi Theft Auto: Wiki Skip to content

getMarkerTargetArrowProperties

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.


function returns the color, transparency and size for a checkpoint marker's target arrow.

Syntax

getMarkerTargetArrowProperties ( )

Code Examples

server
addEventHandler("onClientResourceStart", resourceRoot, function()
local myMarker = createMarker(0, 0, 3, "checkpoint", 2.0, 255, 0, 0, 150)
setMarkerTarget(myMarker, 10, 0, 3)
local r, g, b, a, size = getMarkerTargetArrowProperties(myMarker)
if r then
outputChatBox("Marker Target Arrow Properties:")
outputChatBox("Color: R=" .. r .. " G=" .. g .. " B=" .. b)
outputChatBox("Alpha: " .. a)
outputChatBox("Size: " .. size)
else
outputChatBox("Error: Could not retrieve marker target arrow properties.")
end
end)