PedClient

applyPedBlood

APPLY_PED_BLOOD0x83F7E01C7B769A26

The GTA V native APPLY_PED_BLOOD of the PED namespace, as LS:MP client scripts call it: the global function applyPedBlood, in JavaScript and in Lua.

SignatureJavaScript
applyPedBlood(
  ped: Ped,
  boneIndex: number,
  xRot: number,
  yRot: number,
  zRot: number,
  woundType: string
): void
SignatureLua
applyPedBlood(
  ped: Ped,
  boneIndex: integer,
  xRot: number,
  yRot: number,
  zRot: number,
  woundType: string
)

Usage

JavaScript
applyPedBlood(ped, boneIndex, xRot, yRot, zRot, woundType);
Lua
applyPedBlood(ped, boneIndex, xRot, yRot, zRot, woundType)

Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.

JavaScript · with vectors
applyPedBlood(ped, boneIndex, rot, woundType);
Lua · with vectors
applyPedBlood(ped, boneIndex, rot, woundType)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
boneIndexintnumberinteger
xRotfloatnumbernumber
yRotfloatnumbernumber
zRotfloatnumbernumber
woundTypestringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

woundTypes:
- soak_splat
- wound_sheet
- BulletSmall
- BulletLarge
- ShotgunSmall
- ShotgunSmallMonolithic
- ShotgunLarge
- ShotgunLargeMonolithic
- NonFatalHeadshot
- stab
- BasicSlash
- Scripted_Ped_Splash_Back
- BackSplash

Reference

Namespace
Ped PED
In the game
void APPLY_PED_BLOOD(Ped ped, int boneIndex, float xRot, float yRot, float zRot, const char* woundType)
Hash
0x83F7E01C7B769A26

Open in the interactive natives reference