GetMarkerTargetArrowProperties
Jump to navigation
Jump to search
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
- createMarker
- getMarkerColor
- getMarkerCount
- getMarkerIcon
- getMarkerSize
- getMarkerTarget
- getMarkerType
- setMarkerColor
- setMarkerIcon
- setMarkerSize
- setMarkerTarget
- setMarkerType
- isElementWithinMarker