isPedTargetingMarkerEnabled | Multi Theft Auto: Wiki Skip to content

isPedTargetingMarkerEnabled

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.


This function checks whether health target markers are drawn as set by setPedTargetingMarkerEnabled or not.

Syntax

isPedTargetingMarkerEnabled ( )

Code Examples

client

This example will toggle the targeting markers with the command /togtargetmarkers.

function toggleTargetMarkers(cmd)
local targets = isPedTargetingMarkerEnabled()
setPedTargetingMarkerEnabled(not targets)
outputChatBox("You have " .. (targets and "enabled" or "disabled") .. " target markers.", 0, 255, 0, false)
end
addCommandHandler("togtargetmarkers", toggleTargetMarkers)

See Also