IsPedTargetingMarkerEnabled: Difference between revisions
Jump to navigation
Jump to search
ThePiotrek (talk | contribs) mNo edit summary |
ThePiotrek (talk | contribs) (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
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 [-]
ClientThis 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
- canPedBeKnockedOffBike
- getPedAnalogControlState
- getPedAnimation
- getPedBonePosition
- getPedCameraRotation
- getPedControlState
- getPedMoveState
- getPedOxygenLevel
- getPedSimplestTask
- getPedTargetCollision
- getPedTargetEnd
- getPedTargetStart
- getPedTask
- getPedVoice
- getPedWeaponMuzzlePosition
- givePedWeapon
- isPedBleeding
- isPedDoingTask
- isPedReloadingWeapon
- isPedTargetingMarkerEnabled
- setAnalogControlState
- setPedAimTarget
- setPedAnalogControlState
- setPedBleeding
- setPedCameraRotation
- setPedCanBeKnockedOffBike
- setPedControlState
- setPedEnterVehicle
- setPedExitVehicle
- IsPedFootBloodEnabled
- setPedFootBloodEnabled
- setPedLookAt
- setPedOxygenLevel
- setPedTargetingMarkerEnabled
- setPedVoice
- Shared
- addPedClothes
- getPedClothes
- removePedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedFightingStyle
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getPedContactElement
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot
- warpPedIntoVehicle