GetMarkerTargetArrowProperties

From Multi Theft Auto: Wiki
Revision as of 09:25, 10 July 2025 by Mohab (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22620:
function returns the color, transparency and size for a checkpoint marker's target arrow.

Syntax

int, int, int, int, int getMarkerTargetArrowProperties( marker theMarker )

Required Arguments

  • theMarker: The marker that you wish to retrieve the color and size of.

Returns

Returns five ints corresponding to the amount of red, green, blue, alpha and size of the marker's target arrow, false if invalid arguments were passed.

Example

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)


See Also