SetPedTargetingMarkerEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Func.desc.+ /setPedTargetingMarkerEnabled)
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
[[Image:Targetingmarker.png|thumb|200px|Targeting marker]]
This function is used to toggle the health target marker on top of all pedestrians.
This function is used to toggle the health target marker on top of all pedestrians.


==Syntax==  
==Syntax==  
Line 11: Line 14:
===Returns===
===Returns===
Returns ''true'' if the markers were enabled, ''false'' if weren't or if invalid arguments are passed.
Returns ''true'' if the markers were enabled, ''false'' if weren't or if invalid arguments are passed.


==Example==  
==Example==  
Line 23: Line 28:


==See Also==
==See Also==
{{Ped_functions}}
{{Client ped functions}}

Latest revision as of 13:53, 26 August 2016

Targeting marker

This function is used to toggle the health target marker on top of all pedestrians.


Syntax

bool setPedTargetingMarkerEnabled ( bool enabled )

Required Arguments

  • enabled: A boolean denoting whether we want to enable (true) or disable (false) the markers.

Returns

Returns true if the markers were enabled, false if weren't or if invalid arguments are passed.


Example

Click to collapse [-]
Client
function disableTargetMarkers()
	setPedTargetingMarkerEnabled(false) -- Disables target markers from being rendered after the resource is started
end
addEventHandler("onClientResourceStart", resourceRoot, disableTargetMarkers)

See Also