ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPedBleeding

Function

isPedBleeding

ServerPedsTrilogy Hub only

Returns the value set with setPedBleeding. false by default.

Syntax

bool isPedBleeding(ped ped)

Arguments

pedped
A player or an NPC.

Returns

The stored state.

Example

if isPedBleeding(player) then setElementHealth(player, getElementHealth(player) - 1) end

See also