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

Function

setPedBleeding

ServerPedsTrilogy Hub only

Turns a ped's bleeding on or off. A bleeding player leaves blood drops on the ground in their game while moving (like wounded peds in the game). Health does not drop from bleeding alone. For NPCs the value is stored for scripts and returned by isPedBleeding.

Syntax

bool setPedBleeding(ped ped, bool value)

Arguments

pedped
A player or an NPC.
valuebool
true = bleeding.

Returns

true on success.

Example

setPedBleeding(player, true)

See also