applyPedBlood
APPLY_PED_BLOOD0x83F7E01C7B769A26The 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.
applyPedBlood(
ped: Ped,
boneIndex: number,
xRot: number,
yRot: number,
zRot: number,
woundType: string
): voidapplyPedBlood(
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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
boneIndex | int | number | integer |
xRot | float | number | number |
yRot | float | number | number |
zRot | float | number | number |
woundType | string | string | string |
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