IsPedTargetingMarkerEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(MORE SPACES!!111)
 
Line 3: Line 3:
[[Image:Targetingmarker.png|thumb|200px|Targeting marker]]
[[Image:Targetingmarker.png|thumb|200px|Targeting marker]]
This function checks whether health target markers are drawn as set by [[setPedTargetingMarkerEnabled]] or not.
This function checks whether health target markers are drawn as set by [[setPedTargetingMarkerEnabled]] or not.




Line 10: Line 11:
bool isPedTargetingMarkerEnabled ( )
bool isPedTargetingMarkerEnabled ( )
</syntaxhighlight>
</syntaxhighlight>


===Returns===
===Returns===

Latest revision as of 13:55, 26 August 2016

Targeting marker

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



Syntax

bool isPedTargetingMarkerEnabled ( )


Returns

Returns true if the health target markers are enabled, false if not.


Example

Click to collapse [-]
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